summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/u-boot/u-boot.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/u-boot/u-boot.inc')
-rw-r--r--meta/recipes-bsp/u-boot/u-boot.inc12
1 files changed, 9 insertions, 3 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index 1071d1f270..1f64faa6f6 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -32,7 +32,6 @@ UBOOT_LOCALVERSION ?= ""
32# but enable individual recipes to change this value. 32# but enable individual recipes to change this value.
33UBOOT_SUFFIX ??= "bin" 33UBOOT_SUFFIX ??= "bin"
34UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}" 34UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.${UBOOT_SUFFIX}"
35UBOOT_BINARY ?= "u-boot.${UBOOT_SUFFIX}"
36UBOOT_SYMLINK ?= "u-boot-${MACHINE}.${UBOOT_SUFFIX}" 35UBOOT_SYMLINK ?= "u-boot-${MACHINE}.${UBOOT_SUFFIX}"
37UBOOT_MAKE_TARGET ?= "all" 36UBOOT_MAKE_TARGET ?= "all"
38 37
@@ -82,15 +81,22 @@ do_compile () {
82 81
83 if [ -n "${UBOOT_CONFIG}" ] 82 if [ -n "${UBOOT_CONFIG}" ]
84 then 83 then
84 unset i j k
85 for config in ${UBOOT_MACHINE}; do 85 for config in ${UBOOT_MACHINE}; do
86 i=$(expr $i + 1); 86 i=$(expr $i + 1);
87 for type in ${UBOOT_CONFIG}; do 87 for type in ${UBOOT_CONFIG}; do
88 j=$(expr $j + 1); 88 j=$(expr $j + 1);
89 if [ $j -eq $i ] 89 if [ $j -eq $i ]
90 then 90 then
91 oe_runmake O=${config} ${config} 91 oe_runmake O=${config} ${config}
92 oe_runmake O=${config} ${UBOOT_MAKE_TARGET} 92 oe_runmake O=${config} ${UBOOT_MAKE_TARGET}
93 cp ${S}/${config}/${UBOOT_BINARY} ${S}/${config}/u-boot-${type}.${UBOOT_SUFFIX} 93 for binary in ${UBOOT_BINARIES}; do
94 k=$(expr $k + 1);
95 if [ $k -eq $i ]; then
96 cp ${S}/${config}/${binary} ${S}/${config}/u-boot-${type}.${UBOOT_SUFFIX}
97 fi
98 done
99 unset k
94 fi 100 fi
95 done 101 done
96 unset j 102 unset j