diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-imx_2024.04.bb')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-imx_2024.04.bb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/recipes-bsp/u-boot/u-boot-imx_2024.04.bb b/recipes-bsp/u-boot/u-boot-imx_2024.04.bb index 695987801..27c3555f4 100644 --- a/recipes-bsp/u-boot/u-boot-imx_2024.04.bb +++ b/recipes-bsp/u-boot/u-boot-imx_2024.04.bb | |||
@@ -23,11 +23,13 @@ do_deploy:append:mx8m-generic-bsp() { | |||
23 | for config in ${UBOOT_MACHINE}; do | 23 | for config in ${UBOOT_MACHINE}; do |
24 | i=$(expr $i + 1); | 24 | i=$(expr $i + 1); |
25 | for type in ${UBOOT_CONFIG}; do | 25 | for type in ${UBOOT_CONFIG}; do |
26 | builddir="${config}-${type}" | ||
26 | j=$(expr $j + 1); | 27 | j=$(expr $j + 1); |
27 | if [ $j -eq $i ] | 28 | if [ $j -eq $i ] |
28 | then | 29 | then |
30 | builddir="${config}-${type}" | ||
29 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} | 31 | 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} |
31 | UBOOT_DTB_NAME_FLAGS="${type}:${UBOOT_DTB_NAME}" | 33 | UBOOT_DTB_NAME_FLAGS="${type}:${UBOOT_DTB_NAME}" |
32 | for key_value in ${UBOOT_DTB_NAME_FLAGS}; do | 34 | for key_value in ${UBOOT_DTB_NAME_FLAGS}; do |
33 | local type_key="${key_value%%:*}" | 35 | local type_key="${key_value%%:*}" |
@@ -37,11 +39,11 @@ do_deploy:append:mx8m-generic-bsp() { | |||
37 | bbnote "UBOOT_CONFIG = $type, UBOOT_DTB_NAME = $dtb_name" | 39 | bbnote "UBOOT_CONFIG = $type, UBOOT_DTB_NAME = $dtb_name" |
38 | # There is only one ${dtb_name}, the first one. All the other are with the type appended | 40 | # There is only one ${dtb_name}, the first one. All the other are with the type appended |
39 | if [ ! -f "${DEPLOYDIR}/${BOOT_TOOLS}/${dtb_name}" ]; then | 41 | 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} |
41 | else | 43 | else |
42 | bbwarn "Use custom wks.in for $dtb_name = $type" | 44 | bbwarn "Use custom wks.in for $dtb_name = $type" |
43 | fi | 45 | 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} |
45 | fi | 47 | fi |
46 | unset type_key | 48 | unset type_key |
47 | unset dtb_name | 49 | unset dtb_name |