From 312aa9479917f56e319e57c12a6e6e1c3ea22d87 Mon Sep 17 00:00:00 2001 From: mattis fjallstrom Date: Thu, 29 Jan 2015 10:34:28 -0800 Subject: Cleaned up and double-verified BCH8 build and setups Change-Id: I0650578aed380254fa9fa02bc924a43875923c5d --- config.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'config.mk') 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 -- cgit v1.2.3-70-g09d2