diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-09-18 15:43:41 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-09-24 18:30:29 -0400 |
commit | f494e0a1847d74e68c460c90253836ea21c431ac (patch) | |
tree | 4cf67964e5c4a04c431eac2613b82be014a786c8 /common/Makefile | |
parent | d660b409dc3658087ce15e7d50ed007f1cfa09e8 (diff) | |
download | u-boot-f494e0a1847d74e68c460c90253836ea21c431ac.tar.gz u-boot-f494e0a1847d74e68c460c90253836ea21c431ac.tar.bz2 u-boot-f494e0a1847d74e68c460c90253836ea21c431ac.zip |
kbuild: refactor some makefiles
[1] Move driver/core/, driver/input/ and drivers/input/ entries
from the top Makefile to drivers/Makefile
[2] Remove the conditional by CONFIG_DM in drivers/core/Makefile
because the whole drivers/core directory is already selected
by CONFIG_DM in the upper level
[3] Likewise for CONFIG_DM_DEMO in drivers/demo/Makefile
[4] Simplify common/Makefile - both CONFIG_DDR_SPD and
CONFIG_SPD_EEPROM are boolean macros so they can directly
select objects
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'common/Makefile')
-rw-r--r-- | common/Makefile | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/common/Makefile b/common/Makefile index 66c4f2f189..b19d3793b4 100644 --- a/common/Makefile +++ b/common/Makefile @@ -243,13 +243,8 @@ obj-y += cmd_nvedit.o #environment obj-y += env_common.o #others -ifdef CONFIG_DDR_SPD -SPD := y -endif -ifdef CONFIG_SPD_EEPROM -SPD := y -endif -obj-$(SPD) += ddr_spd.o +obj-$(CONFIG_DDR_SPD) += ddr_spd.o +obj-$(CONFIG_SPD_EEPROM) += ddr_spd.o obj-$(CONFIG_HWCONFIG) += hwconfig.o obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o obj-y += console.o |