diff options
author | Daiane Angolini <daiane.angolini@foundries.io> | 2023-09-20 11:48:18 -0300 |
---|---|---|
committer | Joao Paulo Goncalves <joao.goncalves@toradex.com> | 2023-10-05 11:00:12 -0300 |
commit | 74815db892b67b693f0759ff4718d59911e66ef9 (patch) | |
tree | 31c9aca881b0cc9e983766ad1a1056a644343579 | |
parent | 3e9ef23d98aa842cf84251a27c9b8dde8925ea61 (diff) | |
download | meta-freescale-74815db892b67b693f0759ff4718d59911e66ef9.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>
-rw-r--r-- | classes/imx-boot-container.bbclass | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/classes/imx-boot-container.bbclass b/classes/imx-boot-container.bbclass index aa897045..3c6a89ed 100644 --- a/classes/imx-boot-container.bbclass +++ b/classes/imx-boot-container.bbclass | |||
@@ -93,14 +93,14 @@ do_deploy:append() { | |||
93 | then | 93 | then |
94 | install -m 0644 ${B}/${config}/flash.bin ${DEPLOYDIR}/flash.bin-${MACHINE}-${type} | 94 | install -m 0644 ${B}/${config}/flash.bin ${DEPLOYDIR}/flash.bin-${MACHINE}-${type} |
95 | # When there's more than one word in UBOOT_CONFIG, | 95 | # When there's more than one word in UBOOT_CONFIG, |
96 | # this will overwrite the links created in | 96 | # the first UBOOT_CONFIG listed will be the imx-boot binary |
97 | # previous loop iterations, effectively making | 97 | if [ ! -f "${DEPLOYDIR}/imx-boot" ]; then |
98 | # u-boot.itb and flash.bin correspond to the _last_ | 98 | ln -sf flash.bin-${MACHINE}-${type} flash.bin |
99 | # word in UBOOT_CONFIG. This is also how all other | 99 | ln -sf flash.bin-${MACHINE}-${type} imx-boot |
100 | # artifacts handled by oe-core's u-boot.inc are | 100 | |
101 | # treated. | 101 | else |
102 | ln -sf flash.bin-${MACHINE}-${type} flash.bin | 102 | bbwarn "Use custom wks.in for $UBOOT_CONFIG = $type" |
103 | ln -sf flash.bin-${MACHINE}-${type} imx-boot | 103 | fi |
104 | fi | 104 | fi |
105 | done | 105 | done |
106 | unset j | 106 | unset j |