diff options
| author | mattis fjallstrom <mattis@acm.org> | 2015-01-29 10:34:28 -0800 |
|---|---|---|
| committer | mattis fjallstrom <mattis@acm.org> | 2015-01-29 10:34:28 -0800 |
| commit | 312aa9479917f56e319e57c12a6e6e1c3ea22d87 (patch) | |
| tree | 5d6a00ccedd7e9384aa7ef150c9e2ff2fda03ed3 /config.mk | |
| parent | 55483df91faac909de14f9f66fc922685912c7be (diff) | |
| download | olio-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.mk | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |