summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2021-09-21 08:36:14 -0300
committerGitHub <noreply@github.com>2021-09-21 08:36:14 -0300
commitc756d2a3ab185fb17db0e089000697e46bb9fac1 (patch)
tree561a7670ab3cca8328c6fac7a300d367cb05b066
parent64947ae93aca92e12a0db4fb787e2b4c7a5cee7d (diff)
parent079e293684fea95f5026d2bd7df719879e4dea98 (diff)
downloadmeta-freescale-c756d2a3ab185fb17db0e089000697e46bb9fac1.tar.gz
Merge pull request #870 from Villemoes/imx-boot-config
imx-boot-container.bbclass: support having more than one UBOOT_CONFIG
-rw-r--r--classes/imx-boot-container.bbclass15
1 files changed, 11 insertions, 4 deletions
diff --git a/classes/imx-boot-container.bbclass b/classes/imx-boot-container.bbclass
index 33de45c5..3ffa7cbd 100644
--- a/classes/imx-boot-container.bbclass
+++ b/classes/imx-boot-container.bbclass
@@ -85,10 +85,17 @@ do_deploy:append() {
85 j=$(expr $j + 1); 85 j=$(expr $j + 1);
86 if [ $j -eq $i ] 86 if [ $j -eq $i ]
87 then 87 then
88 install -m 0644 ${B}/${config}/u-boot.itb ${DEPLOYDIR}/u-boot.itb-${MACHINE}-${UBOOT_CONFIG} 88 install -m 0644 ${B}/${config}/u-boot.itb ${DEPLOYDIR}/u-boot.itb-${MACHINE}-${type}
89 install -m 0644 ${B}/${config}/flash.bin ${DEPLOYDIR}/flash.bin-${MACHINE}-${UBOOT_CONFIG} 89 install -m 0644 ${B}/${config}/flash.bin ${DEPLOYDIR}/flash.bin-${MACHINE}-${type}
90 ln -sf u-boot.itb-${MACHINE}-${UBOOT_CONFIG} u-boot.itb 90 # When there's more than one word in UBOOT_CONFIG,
91 ln -sf flash.bin-${MACHINE}-${UBOOT_CONFIG} flash.bin 91 # this will overwrite the links created in
92 # previous loop iterations, effectively making
93 # u-boot.itb and flash.bin correspond to the _last_
94 # word in UBOOT_CONFIG. This is also how all other
95 # artifacts handled by oe-core's u-boot.inc are
96 # treated.
97 ln -sf u-boot.itb-${MACHINE}-${type} u-boot.itb
98 ln -sf flash.bin-${MACHINE}-${type} flash.bin
92 fi 99 fi
93 done 100 done
94 unset j 101 unset j