diff options
| -rw-r--r-- | classes/imx-boot-container.bbclass | 12 | ||||
| -rw-r--r-- | recipes-bsp/u-boot/u-boot-imx_2024.04.bb | 8 | 
2 files changed, 12 insertions, 8 deletions
| diff --git a/classes/imx-boot-container.bbclass b/classes/imx-boot-container.bbclass index c3a13a255..7c9f34927 100644 --- a/classes/imx-boot-container.bbclass +++ b/classes/imx-boot-container.bbclass | |||
| @@ -52,19 +52,20 @@ do_resolve_and_populate_binaries() { | |||
| 52 | for config in ${UBOOT_MACHINE}; do | 52 | for config in ${UBOOT_MACHINE}; do | 
| 53 | i=$(expr $i + 1); | 53 | i=$(expr $i + 1); | 
| 54 | for type in ${UBOOT_CONFIG}; do | 54 | for type in ${UBOOT_CONFIG}; do | 
| 55 | builddir="${config}-${type}" | ||
| 55 | j=$(expr $j + 1); | 56 | j=$(expr $j + 1); | 
| 56 | if [ $j -eq $i ]; then | 57 | if [ $j -eq $i ]; then | 
| 57 | for firmware in ${IMX_BOOT_CONTAINER_FIRMWARE}; do | 58 | for firmware in ${IMX_BOOT_CONTAINER_FIRMWARE}; do | 
| 58 | bbnote "Copy firmware: ${firmware} from ${DEPLOY_DIR_IMAGE} -> ${B}/${config}/" | 59 | bbnote "Copy firmware: ${firmware} from ${DEPLOY_DIR_IMAGE} -> ${B}/${builddir}/" | 
| 59 | cp ${DEPLOY_DIR_IMAGE}/${firmware} ${B}/${config}/ | 60 | cp ${DEPLOY_DIR_IMAGE}/${firmware} ${B}/${builddir}/ | 
| 60 | done | 61 | done | 
| 61 | if [ -n "${ATF_MACHINE_NAME}" ]; then | 62 | 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 | 
| 63 | else | 64 | else | 
| 64 | bberror "ATF binary is undefined, result binary would be unusable!" | 65 | bberror "ATF binary is undefined, result binary would be unusable!" | 
| 65 | fi | 66 | fi | 
| 66 | if [ "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '1' , '0' , d)}" = "1" ] ; then | 67 | 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}/ | 
| 68 | fi | 69 | fi | 
| 69 | fi | 70 | fi | 
| 70 | done | 71 | done | 
| @@ -90,10 +91,11 @@ do_deploy:append() { | |||
| 90 | for config in ${UBOOT_MACHINE}; do | 91 | for config in ${UBOOT_MACHINE}; do | 
| 91 | i=$(expr $i + 1); | 92 | i=$(expr $i + 1); | 
| 92 | for type in ${UBOOT_CONFIG}; do | 93 | for type in ${UBOOT_CONFIG}; do | 
| 94 | builddir="${config}-${type}" | ||
| 93 | j=$(expr $j + 1); | 95 | j=$(expr $j + 1); | 
| 94 | if [ $j -eq $i ] | 96 | if [ $j -eq $i ] | 
| 95 | then | 97 | 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} | 
| 97 | # When there's more than one word in UBOOT_CONFIG, | 99 | # When there's more than one word in UBOOT_CONFIG, | 
| 98 | # the first UBOOT_CONFIG listed will be the imx-boot binary | 100 | # the first UBOOT_CONFIG listed will be the imx-boot binary | 
| 99 | if [ ! -f "${DEPLOYDIR}/imx-boot" ]; then | 101 | if [ ! -f "${DEPLOYDIR}/imx-boot" ]; then | 
| 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 | 
