summaryrefslogtreecommitdiff
path: root/packages/u-boot
diff options
context:
space:
mode:
authorJeremy Laine <jeremy.laine@m4x.org>2008-04-01 11:10:52 +0000
committerJeremy Laine <jeremy.laine@m4x.org>2008-04-01 11:10:52 +0000
commit89ac9aaa8ab44814853cd5ddb108ec0aa1ac9d45 (patch)
treeb5e951958a1ec457a99c07148194e14829b8161e /packages/u-boot
parente9610a64465aa531182bd742996f37ae8414e678 (diff)
u-boot.inc: provide a u-boot-${MACHINE}.bin symlink like kernel images
Diffstat (limited to 'packages/u-boot')
-rw-r--r--packages/u-boot/u-boot.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/u-boot/u-boot.inc b/packages/u-boot/u-boot.inc
index 9f7356d5d7..5a5bdb21c1 100644
--- a/packages/u-boot/u-boot.inc
+++ b/packages/u-boot/u-boot.inc
@@ -10,7 +10,8 @@ PARALLEL_MAKE=""
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
UBOOT_MACHINE ?= "${MACHINE}_config"
-UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.bin"
+UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin"
+UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin"
do_compile () {
unset LDFLAGS
@@ -23,6 +24,10 @@ do_compile () {
do_deploy () {
install -d ${DEPLOY_DIR_IMAGE}
install ${S}/u-boot.bin ${DEPLOY_DIR_IMAGE}/${UBOOT_IMAGE}
+
+ cd ${DEPLOY_DIR_IMAGE}
+ rm -f ${UBOOT_SYMLINK}
+ ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK}
}
do_deploy[dirs] = "${S}"
addtask deploy before do_build after do_compile