diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/imx-boot-container.bbclass | 12 |
1 files changed, 7 insertions, 5 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 |