summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-14 18:18:19 -0700
committerSimon Glass <sjg@chromium.org>2014-11-25 06:33:58 -0700
commit5c30bf435fb91de55c333516fc47415db9701bb7 (patch)
tree4fbfcf739f0e9892830e3b1434c81553795e05e7 /scripts
parent803f2eb2a29cbde53d8baac4f6e6bef260fd0774 (diff)
downloadu-boot-imx-5c30bf435fb91de55c333516fc47415db9701bb7.zip
u-boot-imx-5c30bf435fb91de55c333516fc47415db9701bb7.tar.gz
u-boot-imx-5c30bf435fb91de55c333516fc47415db9701bb7.tar.bz2
Align embedded device tree correctly
Device trees must be aligned to a 4-byte boundary. This was dropped in the Kbuild conversion. Bring it back, and use 16-byte alignment for good measure. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.lib2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 9d1383a..13af604 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -260,11 +260,13 @@ quiet_cmd_dt_S_dtb= DTB $@
cmd_dt_S_dtb= \
( \
echo '.section .dtb.init.rodata,"a"'; \
+ echo '.balign 16'; \
echo '.global __dtb_$(*F)_begin'; \
echo '__dtb_$(*F)_begin:'; \
echo '.incbin "$<" '; \
echo '__dtb_$(*F)_end:'; \
echo '.global __dtb_$(*F)_end'; \
+ echo '.balign 16'; \
) > $@
$(obj)/%.dtb.S: $(obj)/%.dtb