summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2019-02-21 11:25:30 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-25 09:42:06 +0100
commitc1c818735caa8222d88aa9286a219d6055c1699d (patch)
treecf11fbd87d1f569637b859b63a481fae1fb06e9f /scripts
parent5691aed9a3eed409c5ad2266739f373019301b7d (diff)
downloadbarebox-c1c818735caa8222d88aa9286a219d6055c1699d.tar.gz
barebox-c1c818735caa8222d88aa9286a219d6055c1699d.tar.xz
imd: create new helper macro to add data from oftree to image meta data
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-dtb-s8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/gen-dtb-s b/scripts/gen-dtb-s
index 2b44ffb361..307b1f6866 100755
--- a/scripts/gen-dtb-s
+++ b/scripts/gen-dtb-s
@@ -18,8 +18,8 @@ FDTGET=scripts/dtc/fdtget
if [ "$imd" = "y" ]; then
echo ".section .barebox_imd_0.${name},\"a\""
- echo ".global __imd_${name}_start"
- echo "__imd_${name}_start:"
+ echo ".global __barebox_imd_OF_${name}"
+ echo "__barebox_imd_OF_${name}:"
compat=$($FDTGET -d notfound -t bi "$dtb" / compatible | sed "s^ ^,^g")
if [ "$compat" != "notfound" ]; then
@@ -69,7 +69,3 @@ echo ".incbin \"$dtb.lzo\""
echo "__dtb_z_${name}_end:"
echo ".global __dtb_z_${name}_end"
echo ".balign STRUCT_ALIGNMENT"
-
-if [ "$imd" = "y" ]; then
- echo ".word __imd_${name}_start"
-fi