summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
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