Skip to content

Commit 877bb1d

Browse files
authored
Merge pull request #2395 from MaxKrummenacher/master
imx-boot-container.bbclass: follow builddir change
2 parents b03b858 + 9523cfd commit 877bb1d

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

classes/imx-boot-container.bbclass

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,20 @@ do_resolve_and_populate_binaries() {
5252
for config in ${UBOOT_MACHINE}; do
5353
i=$(expr $i + 1);
5454
for type in ${UBOOT_CONFIG}; do
55+
builddir="${config}-${type}"
5556
j=$(expr $j + 1);
5657
if [ $j -eq $i ]; then
5758
for firmware in ${IMX_BOOT_CONTAINER_FIRMWARE}; do
58-
bbnote "Copy firmware: ${firmware} from ${DEPLOY_DIR_IMAGE} -> ${B}/${config}/"
59-
cp ${DEPLOY_DIR_IMAGE}/${firmware} ${B}/${config}/
59+
bbnote "Copy firmware: ${firmware} from ${DEPLOY_DIR_IMAGE} -> ${B}/${builddir}/"
60+
cp ${DEPLOY_DIR_IMAGE}/${firmware} ${B}/${builddir}/
6061
done
6162
if [ -n "${ATF_MACHINE_NAME}" ]; then
62-
cp ${DEPLOY_DIR_IMAGE}/${ATF_MACHINE_NAME} ${B}/${config}/bl31.bin
63+
cp ${DEPLOY_DIR_IMAGE}/${ATF_MACHINE_NAME} ${B}/${builddir}/bl31.bin
6364
else
6465
bberror "ATF binary is undefined, result binary would be unusable!"
6566
fi
6667
if [ "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '1' , '0' , d)}" = "1" ] ; then
67-
cp ${DEPLOY_DIR_IMAGE}/${OPTEE_BOOT_IMAGE} ${B}/${config}/
68+
cp ${DEPLOY_DIR_IMAGE}/${OPTEE_BOOT_IMAGE} ${B}/${builddir}/
6869
fi
6970
fi
7071
done
@@ -90,10 +91,11 @@ do_deploy:append() {
9091
for config in ${UBOOT_MACHINE}; do
9192
i=$(expr $i + 1);
9293
for type in ${UBOOT_CONFIG}; do
94+
builddir="${config}-${type}"
9395
j=$(expr $j + 1);
9496
if [ $j -eq $i ]
9597
then
96-
install -m 0644 ${B}/${config}/flash.bin ${DEPLOYDIR}/flash.bin-${MACHINE}-${type}
98+
install -m 0644 ${B}/${builddir}/flash.bin ${DEPLOYDIR}/flash.bin-${MACHINE}-${type}
9799
# When there's more than one word in UBOOT_CONFIG,
98100
# the first UBOOT_CONFIG listed will be the imx-boot binary
99101
if [ ! -f "${DEPLOYDIR}/imx-boot" ]; then

recipes-bsp/u-boot/u-boot-imx_2024.04.bb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ do_deploy:append:mx8m-generic-bsp() {
2323
for config in ${UBOOT_MACHINE}; do
2424
i=$(expr $i + 1);
2525
for type in ${UBOOT_CONFIG}; do
26+
builddir="${config}-${type}"
2627
j=$(expr $j + 1);
2728
if [ $j -eq $i ]
2829
then
30+
builddir="${config}-${type}"
2931
install -d ${DEPLOYDIR}/${BOOT_TOOLS}
30-
install -m 0644 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${type}
32+
install -m 0644 ${B}/${builddir}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${type}
3133
UBOOT_DTB_NAME_FLAGS="${type}:${UBOOT_DTB_NAME}"
3234
for key_value in ${UBOOT_DTB_NAME_FLAGS}; do
3335
local type_key="${key_value%%:*}"
@@ -37,11 +39,11 @@ do_deploy:append:mx8m-generic-bsp() {
3739
bbnote "UBOOT_CONFIG = $type, UBOOT_DTB_NAME = $dtb_name"
3840
# There is only one ${dtb_name}, the first one. All the other are with the type appended
3941
if [ ! -f "${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}" ]; then
40-
install -m 0644 ${B}/${config}/arch/arm/dts/${dtb_name} ${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}
42+
install -m 0644 ${B}/${builddir}/arch/arm/dts/${dtb_name} ${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}
4143
else
4244
bbwarn "Use custom wks.in for $dtb_name = $type"
4345
fi
44-
install -m 0644 ${B}/${config}/arch/arm/dts/${dtb_name} ${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}-${type}
46+
install -m 0644 ${B}/${builddir}/arch/arm/dts/${dtb_name} ${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}-${type}
4547
fi
4648
unset type_key
4749
unset dtb_name

0 commit comments

Comments
 (0)