summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorLee Nipper <lee.nipper@linux.com>2015-08-12 23:08:52 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-19 18:05:42 +0100
commit7ed4a91863252c60e5c6c8997d6dac99b85854bc (patch)
tree0edc950a22165948655e3ec39c06cbfa13dff393 /meta/recipes-bsp
parentd4618ff16753cd176b1cd661e91bab18c0a42249 (diff)
downloadpoky-7ed4a91863252c60e5c6c8997d6dac99b85854bc.tar.gz
u-boot.inc: Add UBOOT_BINARY sym links for UBOOT_CONFIG types
An additional use case of UBOOT_CONFIG is when a machine has applicability to boards of the same architecture but different in other ways to require a different UBOOT_BINARY build. The UBOOT_CONFIG default value can be a list of these board types. For example: UBOOT_CONFIG ??= "boardA boardB" UBOOT_CONFIG[boardA] = "boardA_defconfig" UBOOT_CONFIG[boardB] = "boardB_defconfig" Change do_install and do_deploy sections which process a UBOOT_CONFIG list to create short symbolic links to each of the config types for UBOOT_BINARY. This is similar to the links currently being created for SPL_BINARY when it is defined with a UBOOT_CONFIG list. For the above example, and UBOOT_BINARY as u-boot.bin, the additional symbolic links created in the DEPLOYDIR would be u-boot.bin-boardA u-boot.bin-boardB (From OE-Core rev: 12551f4ca214cfc2528b42da8574a6622228ce0b) Signed-off-by: Lee Nipper <lee.nipper@linux.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/u-boot/u-boot.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index c76f87f5a2..990ddb168e 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -97,6 +97,7 @@ do_install () {
97 then 97 then
98 install -d ${D}/boot 98 install -d ${D}/boot
99 install ${S}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${D}/boot/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} 99 install ${S}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${D}/boot/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX}
100 ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY}-${type}
100 ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY} 101 ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY}
101 fi 102 fi
102 done 103 done
@@ -159,7 +160,9 @@ do_deploy () {
159 install -d ${DEPLOYDIR} 160 install -d ${DEPLOYDIR}
160 install ${S}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} 161 install ${S}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX}
161 cd ${DEPLOYDIR} 162 cd ${DEPLOYDIR}
163 ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK}-${type}
162 ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK} 164 ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK}
165 ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_BINARY}-${type}
163 ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_BINARY} 166 ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_BINARY}
164 fi 167 fi
165 done 168 done