]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/commitdiff
sdcard_image bbclass: make VFAT partition name overridable
authorKoen Kooi <koen@dominion.thruhere.net>
Tue, 18 Oct 2011 16:22:02 +0000 (18:22 +0200)
committerKoen Kooi <koen@dominion.thruhere.net>
Tue, 18 Oct 2011 16:22:02 +0000 (18:22 +0200)
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
classes/sdcard_image.bbclass

index 41891fe5adf3d5f8a22d241a1344d834044e0e5d..d7f48a804bf97591b9803076b26d3b9baa513434 100644 (file)
@@ -16,6 +16,8 @@ LOOPDEV_FS ?= "/dev/loop3"
 SDIMG_SIZE ?= "444" 
 SDIMG_SIZE_beaglebone = "222"
 
+BOOTPARTNAME ?= "${MACHINE}"
+
 IMAGE_CMD_sdimg () {
        SDIMG=${WORKDIR}/sd.img
 
@@ -61,7 +63,7 @@ IMAGE_CMD_sdimg () {
 
        ${LOSETUP} ${LOOPDEV_BOOT} ${SDIMG} -o ${BOOT_OFFSET} 
 
-       /sbin/mkfs.msdos ${LOOPDEV_BOOT} -n boot $LOOPDEV_BLOCKS
+       /sbin/mkfs.msdos ${LOOPDEV_BOOT} -n ${BOOTPARTNAME} $LOOPDEV_BLOCKS
 
        # Prepare filesystem partition
        # Copy ubi used by flashing scripts