[U-Boot] [PATCH] scripts/Makefile.lib: Make __dtb_dt_begin align on a 4 byte boundary

Bin Meng bmeng.cn at gmail.com
Thu Nov 20 10:45:06 CET 2014


With CONFIG_OF_EMBED, __dtb_dt_begin must be aligned on a 4 byte
boundary otherwise fdtdec_prepare_fdt() will fail.

Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---
 scripts/Makefile.lib | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 9d1383a..aead250 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -260,6 +260,7 @@ quiet_cmd_dt_S_dtb= DTB     $@
 cmd_dt_S_dtb=						\
 (							\
 	echo '.section .dtb.init.rodata,"a"';		\
+	echo '.p2align 2';				\
 	echo '.global __dtb_$(*F)_begin';		\
 	echo '__dtb_$(*F)_begin:';			\
 	echo '.incbin "$<" ';				\
-- 
1.8.2.1



More information about the U-Boot mailing list