1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-06-06 02:42:34 +00:00

sdcard_image bbclass: move back to 2GB images, clarify LOOPDEV* usage

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Koen Kooi
2011-10-14 12:37:10 +02:00
parent fe02476903
commit a3226f913d
+2 -1
View File
@@ -7,6 +7,7 @@ IMAGE_FSTYPES_append = " tar.bz2 sdimg"
LOSETUP ?= "/sbin/losetup"
# Since these need to go in /etc/fstab we can hardcode them
# Since the vars are weakly assigned, you can override them from your local.conf
LOOPDEV ?= "/dev/loop1"
LOOPDEV_BOOT ?= "/dev/loop2"
LOOPDEV_FS ?= "/dev/loop3"
@@ -28,7 +29,7 @@ IMAGE_CMD_sdimg () {
# If an SD image is already present, reuse and reformat it
if [ ! -e ${SDIMG} ] ; then
dd if=/dev/zero of=${SDIMG} bs=$(echo '255 * 63 * 512' | bc) count=444
dd if=/dev/zero of=${SDIMG} bs=$(echo '255 * 63 * 512' | bc) count=222
fi
${LOSETUP} ${LOOPDEV} ${SDIMG}