Skip to contentSkip to conversation

sdcard_image bbclass: correct MLO path in DEPLOY_DIR_IMAGE

PATCH In review Peter A. Bigot 3 participants 4 messages Nov 11, 2011 – Nov 12, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sdcard_image bbclass: correct MLO path in DEPLOY_DIR_IMAGE

From: "Peter A. Bigot" <[email protected]>

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

---
 classes/sdcard_image.bbclass |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
classes/sdcard_image.bbclass +4 -1
index 531b419..6c933f9 100644
@@ -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
Signature · 1 line
1.7.6.4
#1 lore raw

Op 11 nov. 2011, om 20:47 heeft Peter A. Bigot het volgende geschreven:

Quoted 4 lines

From: "Peter A. Bigot" <[email protected]>

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

This will break SPL builds, a better idea would be to patch the xloader recipe to generate a MLO symlink as well. It's on my todo do fix xload, uboot(spl) and kernel to generate ready-to-use link like uImage, MLO and u-boot.{img,bin}. If someone beats me to it, great :)

regards,

Koen

#2 lore raw
Quoted 9 lines · Koen Kooi

Op 11 nov. 2011, om 20:47 heeft Peter A. Bigot het volgende geschreven:

Quoted 4 lines

From: "Peter A. Bigot" <[email protected]>

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

This will break SPL builds, a better idea would be to patch the xloader recipe to generate a MLO symlink as well. It's on my todo do fix xload, uboot(spl) and kernel to generate ready-to-use link like uImage, MLO and u-boot.{img,bin}. If someone beats me to it, great :)

As far as I can tell nobody would ever put an unadorned "MLO" into the deploy directory (vice the install directory, which does get plain MLO), so I can't see how the else branch could ever have worked, at least not for MACHINE=beagleboard. Must be more hidden magic somewhere.

Peter

Quoted 12 lines

regards,

Koen
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAk69fLAACgkQMkyGM64RGpFITQCfWIupy+vIyAC4LrwvUKETwvPG hr4An3TRAFTEVNXi6uvnk8mjda6TY2Gl
=uIzI
-----END PGP SIGNATURE-----

#3 lore raw
Quoted 9 lines · Peter Bigot
Quoted 8 lines · Koen Kooi

Op 11 nov. 2011, om 20:47 heeft Peter A. Bigot het volgende geschreven:

Quoted 4 lines

From: "Peter A. Bigot" <[email protected]>

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

Quoted 7 lines
Quoted 1 line

This will break SPL builds, a better idea would be to patch the xloader recipe to generate a MLO symlink as well. It's on my todo do fix xload, uboot(spl) and kernel to generate ready-to-use link like uImage, MLO and u-boot.{img,bin}. If someone beats me to it, great :)

As far as I can tell nobody would ever put an unadorned "MLO" into the deploy directory (vice the install directory, which does get plain MLO), so I can't see how the else branch could ever have worked, at least not for MACHINE=beagleboard.  Must be more hidden magic somewhere.

I suspect the answer there is lots of building for beaglebone instead recently. For beagleboard I'd rather see us pull in my SPL patches and drop x-load :)

http://patchwork.ozlabs.org/bundle/trini/add-more-framework-to-omap3-spl-v3/

Signature · 1 line
Tom