[meta-ti] [PATCH] sdcard_image bbclass: correct MLO path in DEPLOY_DIR_IMAGE

Peter A. Bigot bigotp at acm.org
Fri Nov 11 11:47:16 PST 2011


From: "Peter A. Bigot" <bigotp at acm.org>

The symlink created by x-load.inc for MLO in ${DEPLOY_DIR_IMAGE} includes
${MACHINE}.

Signed-off-by: Peter A. Bigot <bigotp at acm.org>
---
 classes/sdcard_image.bbclass |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass
index 531b419..6c933f9 100644
--- a/classes/sdcard_image.bbclass
+++ b/classes/sdcard_image.bbclass
@@ -29,6 +29,9 @@ IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}"
 # Files and/or directories to be copied into the vfat partition
 FATPAYLOAD ?= ""
 
+# Match meta-ti x-load.inc link names
+MLO_SYMLINK ?= "MLO-${MACHINE}"
+
 IMAGE_CMD_sdimg () {
 	SDIMG=${WORKDIR}/sd.img
 
@@ -93,7 +96,7 @@ IMAGE_CMD_sdimg () {
 	if [ -e ${IMAGE_ROOTFS}/boot/MLO ] ; then
 		cp -v ${IMAGE_ROOTFS}/boot/MLO ${WORKDIR}/tmp-mnt-boot 
 	else
-		cp -v ${DEPLOY_DIR_IMAGE}/MLO ${WORKDIR}/tmp-mnt-boot
+		cp -v ${DEPLOY_DIR_IMAGE}/${MLO_SYMLINK} ${WORKDIR}/tmp-mnt-boot/MLO
 	fi
 
 	# Check for u-boot SPL
-- 
1.7.6.4




More information about the meta-ti mailing list