summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-10-05 10:28:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-10-12 16:30:23 +0200
commitbbda04ce43996baa5d57a6e7fb482a34c7ef9d38 (patch)
tree23cac367467c6ec3f9c4206119122469c89ff652 /scripts
parent4dee9d16c01cec6f290f9ff25cda72416c8d2d3f (diff)
downloadbarebox-bbda04ce43996baa5d57a6e7fb482a34c7ef9d38.tar.gz
barebox-bbda04ce43996baa5d57a6e7fb482a34c7ef9d38.tar.xz
gen-dtb-s: support x86 and other platforms with 16-bit .word
On ARM, .word is 32-bit as expected in the script, but on x86 it's 16-bit, which leads to truncation. .int on the other hand is 32-bit both on ARM and x86 and very likely all other platforms we support, so change the .word to .int. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-dtb-s6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gen-dtb-s b/scripts/gen-dtb-s
index 0649247f93..4f8c62a0b8 100755
--- a/scripts/gen-dtb-s
+++ b/scripts/gen-dtb-s
@@ -62,9 +62,9 @@ echo ".section .dtbz.rodata.${name},\"a\""
echo ".balign STRUCT_ALIGNMENT"
echo ".global __dtb_z_${name}_start"
echo "__dtb_z_${name}_start:"
-printf ".word 0x%08x\n" 0x7b66bcbd
-printf ".word 0x%08x\n" $compressed
-printf ".word 0x%08x\n" $uncompressed
+printf ".int 0x%08x\n" 0x7b66bcbd
+printf ".int 0x%08x\n" $compressed
+printf ".int 0x%08x\n" $uncompressed
echo ".incbin \"$dtb.lzo\""
echo "__dtb_z_${name}_end:"
echo ".global __dtb_z_${name}_end"