summaryrefslogtreecommitdiff
path: root/common/Makefile
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2015-06-29 09:10:46 +0200
committerTom Rini <trini@konsulko.com>2015-08-12 20:47:13 -0400
commit80402f34f8e1f46134a0272ff4d34be64ff7380b (patch)
tree5fcf26d057c39f522fe4cf6ed77966dc322d72b8 /common/Makefile
parentacb5ff021eb65931d3e970da8ff0a00dda0cd088 (diff)
downloadu-boot-imx-80402f34f8e1f46134a0272ff4d34be64ff7380b.zip
u-boot-imx-80402f34f8e1f46134a0272ff4d34be64ff7380b.tar.gz
u-boot-imx-80402f34f8e1f46134a0272ff4d34be64ff7380b.tar.bz2
spl, common, serial: build SPL without serial support
This patch enables building SPL without CONFIG_SPL_SERIAL_SUPPORT support. Signed-off-by: Heiko Schocher <hs@denx.de> [trini: Ensure we build arch/arm/imx-common on mx28] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile
index 6dc4c89..dc82433 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -251,7 +251,11 @@ 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
+ifdef CONFIG_SPL_BUILD
+obj-$(CONFIG_SPL_SERIAL_SUPPORT) += console.o
+else
obj-y += console.o
+endif
obj-$(CONFIG_CROS_EC) += cros_ec.o
obj-y += dlmalloc.o
ifdef CONFIG_SYS_MALLOC_F_LEN