[U-Boot] [PATCH v2 02/13] trats: add optional cflags to board object file.

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


This change avoids unexpected unaligned access.

more info: README.arm-unaligned-accesses

Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
cc: Lukasz Majewski <l.majewski at samsung.com>

---
Changes v2:
- new patch
---
 board/samsung/trats/Makefile |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/samsung/trats/Makefile b/board/samsung/trats/Makefile
index 5dc8a1f..c1bcd63 100644
--- a/board/samsung/trats/Makefile
+++ b/board/samsung/trats/Makefile
@@ -6,3 +6,5 @@
 #
 
 obj-y	+= trats.o
+
+$(obj)trats.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
\ No newline at end of file
-- 
1.7.9.5



More information about the U-Boot mailing list