1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-05-07 11:59:49 +00:00

u-boot: enhance deploy symlinking logic

It will now deploy:

u-boot-<machine>-<version>.suffix
u-boot-<machine>.suffix (symlink)
u-boot.suffix (symlink)

And additionally for SPL builds:

MLO-<machine>-<version>
MLO-<machine> (symlink)
MLO (symlink)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Koen Kooi
2011-11-14 10:39:06 +01:00
parent eceb8e05b9
commit 2de08fa6d4
2 changed files with 10 additions and 5 deletions
+9 -1
View File
@@ -63,6 +63,14 @@ do_deploy () {
install ${S}/${UBOOT_BINARY} ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE}
cd ${DEPLOY_DIR_IMAGE}
rm -f ${UBOOT_SYMLINK}
rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK}
ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK}
ln -sf ${UBOOT_IMAGE} ${UBOOT_BINARY}
if [ -e ${S}/MLO ] ; then
install ${S}/MLO ${DEPLOY_DIR_IMAGE}/MLO-${MACHINE}-${PV}
rm -f ${DEPLOY_DIR_IMAGE}/MLO-${MACHINE} ${DEPLOY_DIR_IMAGE}/MLO
ln -sf MLO-${MACHINE}-${PV} ${DEPLOY_DIR_IMAGE}/MLO-${MACHINE}
ln -sf MLO-${MACHINE}-${PV} ${DEPLOY_DIR_IMAGE}/MLO
fi
}
+1 -4
View File
@@ -4,7 +4,7 @@ require u-boot.inc
COMPATIBLE_MACHINE = "(ti33x)"
DEFAULT_PREFERENCE_ti33x = "99"
PV = "2011.09+git"
PR = "r23"
PR = "r24"
# SPL build
UBOOT_BINARY = "u-boot.img"
@@ -28,6 +28,3 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
S = "${WORKDIR}/git"
do_deploy_append () {
install ${S}/MLO ${DEPLOY_DIR_IMAGE}/MLO
}