Skip to content

Commit

Permalink
imx-boot-container: Create only one imx-boot
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
angolini committed Sep 22, 2023
1 parent 45db187 commit 23af0e4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions classes/imx-boot-container.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ do_deploy:append() {
then
install -m 0644 ${B}/${config}/flash.bin ${DEPLOYDIR}/flash.bin-${MACHINE}-${type}
# When there's more than one word in UBOOT_CONFIG,
# this will overwrite the links created in
# previous loop iterations, effectively making
# u-boot.itb and flash.bin correspond to the _last_
# word in UBOOT_CONFIG. This is also how all other
# artifacts handled by oe-core's u-boot.inc are
# treated.
ln -sf flash.bin-${MACHINE}-${type} flash.bin
ln -sf flash.bin-${MACHINE}-${type} imx-boot
# the first UBOOT_CONFIG listed will be the imx-boot binary
if [ ! -f "${DEPLOYDIR}/imx-boot" ]; then
ln -sf flash.bin-${MACHINE}-${type} flash.bin
ln -sf flash.bin-${MACHINE}-${type} imx-boot

else
bbwarn "Use custom wks.in for $UBOOT_CONFIG = $type"
fi
fi
done
unset j
Expand Down

0 comments on commit 23af0e4

Please sign in to comment.