[U-Boot] [PATCH v2 06/13] common: makefile: Add optional cflags to object: common/lcd.o

Przemyslaw Marczak p.marczak at samsung.com
Wed Dec 18 19:31:31 CET 2013


This change adds CFLAGS: -mno-unaligned-access
which depends on option: PLATFORM_NO_UNALIGNED

This option avoids unaligned data access exception on armv7, caused
by access to logo data which is mostly unaligned initialized array.

more info: README.arm-unaligned-accesses

Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>

---
Changes v2:
- new patch
---
 common/Makefile |    1 +
 1 file changed, 1 insertion(+)

diff --git a/common/Makefile b/common/Makefile
index 74404be..619d72c 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -240,3 +240,4 @@ $(obj)env_embedded.o: $(src)env_embedded.c
 # SEE README.arm-unaligned-accesses
 $(obj)hush.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
 $(obj)fdt_support.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
+$(obj)lcd.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
-- 
1.7.9.5



More information about the U-Boot mailing list