summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorDaiane Angolini <daiane.angolini@foundries.io>2023-09-20 11:48:18 -0300
committerDaiane Angolini <daiane.angolini@foundries.io>2023-09-22 17:08:10 -0300
commit23af0e4d3526bb5c2b59731f76874d127efba58c (patch)
tree4268e525d8536620c11ec88f112a30a3c529639b /classes
parent45db18727813b50b8f16a04830f82f7280f55591 (diff)
downloadmeta-freescale-23af0e4d3526bb5c2b59731f76874d127efba58c.tar.gz
imx-boot-container: Create only one imx-boot
Only the first UBOOT_CONFIG generate a imx-boot and flash.bin symlink. Every UBOOT_CONFIG creates a flash.bin-${MACHINE}-${type} binary. Signed-off-by: Daiane Angolini <daiane.angolini@foundries.io>
Diffstat (limited to 'classes')
-rw-r--r--classes/imx-boot-container.bbclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/classes/imx-boot-container.bbclass b/classes/imx-boot-container.bbclass
index 308e75d7..53c70a0b 100644
--- a/classes/imx-boot-container.bbclass
+++ b/classes/imx-boot-container.bbclass
@@ -92,14 +92,14 @@ do_deploy:append() {
92 then 92 then
93 install -m 0644 ${B}/${config}/flash.bin ${DEPLOYDIR}/flash.bin-${MACHINE}-${type} 93 install -m 0644 ${B}/${config}/flash.bin ${DEPLOYDIR}/flash.bin-${MACHINE}-${type}
94 # When there's more than one word in UBOOT_CONFIG, 94 # When there's more than one word in UBOOT_CONFIG,
95 # this will overwrite the links created in 95 # the first UBOOT_CONFIG listed will be the imx-boot binary
96 # previous loop iterations, effectively making 96 if [ ! -f "${DEPLOYDIR}/imx-boot" ]; then
97 # u-boot.itb and flash.bin correspond to the _last_ 97 ln -sf flash.bin-${MACHINE}-${type} flash.bin
98 # word in UBOOT_CONFIG. This is also how all other 98 ln -sf flash.bin-${MACHINE}-${type} imx-boot
99 # artifacts handled by oe-core's u-boot.inc are 99
100 # treated. 100 else
101 ln -sf flash.bin-${MACHINE}-${type} flash.bin 101 bbwarn "Use custom wks.in for $UBOOT_CONFIG = $type"
102 ln -sf flash.bin-${MACHINE}-${type} imx-boot 102 fi
103 fi 103 fi
104 done 104 done
105 unset j 105 unset j