From: Jeremy Laine Date: Tue, 1 Apr 2008 11:10:52 +0000 (+0000) Subject: u-boot.inc: provide a u-boot-${MACHINE}.bin symlink like kernel images X-Git-Tag: Release-2010-05/1~7249^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89ac9aaa8ab44814853cd5ddb108ec0aa1ac9d45;p=openembedded.git u-boot.inc: provide a u-boot-${MACHINE}.bin symlink like kernel images --- 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