diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-10-18 18:22:02 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-10-18 18:22:02 +0200 |
commit | 9c6d6d949037fb84cb501c1899033912fe4aff39 (patch) | |
tree | 045935f06c24c99593b0775e85b526f307d513d8 /classes | |
parent | 2dfa737f551a37967bcb5ae80a7db1282f6b0cc6 (diff) | |
download | meta-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.bbclass | 4 |
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" | |||
16 | SDIMG_SIZE ?= "444" | 16 | SDIMG_SIZE ?= "444" |
17 | SDIMG_SIZE_beaglebone = "222" | 17 | SDIMG_SIZE_beaglebone = "222" |
18 | 18 | ||
19 | BOOTPARTNAME ?= "${MACHINE}" | ||
20 | |||
19 | IMAGE_CMD_sdimg () { | 21 | IMAGE_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 |