[oe] [PATCH] allow u-boot package binaries to be relocated to UBOOT_DEST
Jim Sheldon
jims at russound.com
Fri Jul 2 17:32:41 UTC 2010
Signed-off-by: Jim Sheldon <jims at russound.com>
---
recipes/u-boot/u-boot.inc | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/recipes/u-boot/u-boot.inc b/recipes/u-boot/u-boot.inc
index 323eaef..e4bbdde 100644
--- a/recipes/u-boot/u-boot.inc
+++ b/recipes/u-boot/u-boot.inc
@@ -13,6 +13,7 @@ PARALLEL_MAKE=""
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
UBOOT_MACHINE ?= "${MACHINE}_config"
+UBOOT_DEST ?= "/boot"
UBOOT_BINARY ?= "u-boot.bin"
UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin"
UBOOT_SYMLINK ?= "u-boot-${MACHINE}.bin"
@@ -27,9 +28,9 @@ do_compile () {
}
do_install () {
- install -d ${D}/boot
- install ${S}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE}
- ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY}
+ install -d ${D}/${UBOOT_DEST}
+ install ${S}/${UBOOT_BINARY} ${D}/${UBOOT_DEST}/${UBOOT_IMAGE}
+ ln -sf ${UBOOT_IMAGE} ${D}/${UBOOT_DEST}/${UBOOT_BINARY}
if [ -e ${WORKDIR}/fw_env.config ] ; then
install -d ${D}${base_sbindir}
@@ -41,7 +42,7 @@ do_install () {
}
-FILES_${PN} = "/boot"
+FILES_${PN} = "${UBOOT_DEST}"
# no gnu_hash in uboot.bin, by design, so skip QA
INSANE_SKIP_${PN} = True
--
1.5.4.3
More information about the Openembedded-devel
mailing list