summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authormattis fjallstrom <mattis@acm.org>2015-01-29 10:34:28 -0800
committermattis fjallstrom <mattis@acm.org>2015-01-29 10:34:28 -0800
commit312aa9479917f56e319e57c12a6e6e1c3ea22d87 (patch)
tree5d6a00ccedd7e9384aa7ef150c9e2ff2fda03ed3 /config.mk
parent55483df91faac909de14f9f66fc922685912c7be (diff)
downloadolio-uboot-2014.01-312aa9479917f56e319e57c12a6e6e1c3ea22d87.tar.xz
olio-uboot-2014.01-312aa9479917f56e319e57c12a6e6e1c3ea22d87.zip
Cleaned up and double-verified BCH8 build and setups
Change-Id: I0650578aed380254fa9fa02bc924a43875923c5d
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index d63267ea9..2c6ca33fe 100644
--- a/config.mk
+++ b/config.mk
@@ -207,6 +207,12 @@ gccincdir := $(shell $(CC) -print-file-name=include)
CPPFLAGS := $(DBGFLAGS) $(OPTFLAGS) $(RELFLAGS) \
-D__KERNEL__
+# For omap3_h1.h we let the UART boot flag also trigger BCH8 error correction.
+
+ifdef BOOT_DEVICE_UART
+CPPFLAGS += -DBCH8_ECC
+endif
+
# Enable garbage collection of un-used sections for SPL
ifeq ($(CONFIG_SPL_BUILD),y)
CPPFLAGS += -ffunction-sections -fdata-sections
@@ -240,8 +246,9 @@ CPPFLAGS += -DCONFIG_SPL_BUILD
ifeq ($(CONFIG_TPL_BUILD),y)
CPPFLAGS += -DCONFIG_TPL_BUILD
endif
+
ifeq ($(CONFIG_SPL_BOOT_DEVICE),uart)
-CPPFLAGS += -DSPL_BOOT_DEVICE_UART
+CPPFLAGS += -DSPL_BOOT_DEVICE_UART
endif
endif