summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-08-12 07:31:45 +0900
committerTom Rini <trini@konsulko.com>2015-08-18 13:46:01 -0400
commit040906f68d2e7e9ee3d96476972d0506b80cf5f0 (patch)
tree9b7bef0678a2100c889b56f9a7084e3b195953b5 /drivers
parentd6c2ac5b7572e1fd9662e1cd9c1d7c184dfab1c0 (diff)
downloadu-boot-imx-040906f68d2e7e9ee3d96476972d0506b80cf5f0.zip
u-boot-imx-040906f68d2e7e9ee3d96476972d0506b80cf5f0.tar.gz
u-boot-imx-040906f68d2e7e9ee3d96476972d0506b80cf5f0.tar.bz2
dm: unify obj-$(CONFIG_DM) and obj-$(CONFIG_SPL_DM) entries
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/Makefile b/drivers/Makefile
index a24c5f5..ee8e418 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -1,7 +1,8 @@
+obj-$(CONFIG_$(SPL_)DM) += core/
+
ifdef CONFIG_SPL_BUILD
obj-$(CONFIG_SPL_CLK_SUPPORT) += clk/
-obj-$(CONFIG_SPL_DM) += core/
obj-$(CONFIG_SPL_I2C_SUPPORT) += i2c/
obj-$(CONFIG_SPL_GPIO_SUPPORT) += gpio/
obj-$(CONFIG_SPL_MMC_SUPPORT) += mmc/
@@ -34,7 +35,6 @@ obj-$(CONFIG_SPL_SATA_SUPPORT) += block/
else
obj-$(CONFIG_CLK) += clk/
-obj-$(CONFIG_DM) += core/
obj-$(CONFIG_DM_DEMO) += demo/
obj-$(CONFIG_BIOSEMU) += bios_emulator/
obj-y += block/