summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-10-18 18:22:02 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2011-10-18 18:22:02 +0200
commit9c6d6d949037fb84cb501c1899033912fe4aff39 (patch)
tree045935f06c24c99593b0775e85b526f307d513d8 /classes
parent2dfa737f551a37967bcb5ae80a7db1282f6b0cc6 (diff)
downloadmeta-ti-9c6d6d949037fb84cb501c1899033912fe4aff39.tar.gz
sdcard_image bbclass: make VFAT partition name overridable
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'classes')
-rw-r--r--classes/sdcard_image.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass
index 41891fe5..d7f48a80 100644
--- a/classes/sdcard_image.bbclass
+++ b/classes/sdcard_image.bbclass
@@ -16,6 +16,8 @@ LOOPDEV_FS ?= "/dev/loop3"
16SDIMG_SIZE ?= "444" 16SDIMG_SIZE ?= "444"
17SDIMG_SIZE_beaglebone = "222" 17SDIMG_SIZE_beaglebone = "222"
18 18
19BOOTPARTNAME ?= "${MACHINE}"
20
19IMAGE_CMD_sdimg () { 21IMAGE_CMD_sdimg () {
20 SDIMG=${WORKDIR}/sd.img 22 SDIMG=${WORKDIR}/sd.img
21 23
@@ -61,7 +63,7 @@ IMAGE_CMD_sdimg () {
61 63
62 ${LOSETUP} ${LOOPDEV_BOOT} ${SDIMG} -o ${BOOT_OFFSET} 64 ${LOSETUP} ${LOOPDEV_BOOT} ${SDIMG} -o ${BOOT_OFFSET}
63 65
64 /sbin/mkfs.msdos ${LOOPDEV_BOOT} -n boot $LOOPDEV_BLOCKS 66 /sbin/mkfs.msdos ${LOOPDEV_BOOT} -n ${BOOTPARTNAME} $LOOPDEV_BLOCKS
65 67
66 # Prepare filesystem partition 68 # Prepare filesystem partition
67 # Copy ubi used by flashing scripts 69 # Copy ubi used by flashing scripts