summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-10-14 12:37:10 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2011-10-14 12:37:10 +0200
commita3226f913dfde6cae0ce165e2303cbc8933a8007 (patch)
treedee6d162987eb8ba41ed90a1cdaf023e88910fe8 /classes
parentfe02476903080955f2175d62cbf3fdc1a1c68f79 (diff)
downloadmeta-ti-a3226f913dfde6cae0ce165e2303cbc8933a8007.tar.gz
sdcard_image bbclass: move back to 2GB images, clarify LOOPDEV* usage
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'classes')
-rw-r--r--classes/sdcard_image.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass
index 9aed4f84..be7ab3b9 100644
--- a/classes/sdcard_image.bbclass
+++ b/classes/sdcard_image.bbclass
@@ -7,6 +7,7 @@ IMAGE_FSTYPES_append = " tar.bz2 sdimg"
7LOSETUP ?= "/sbin/losetup" 7LOSETUP ?= "/sbin/losetup"
8 8
9# Since these need to go in /etc/fstab we can hardcode them 9# Since these need to go in /etc/fstab we can hardcode them
10# Since the vars are weakly assigned, you can override them from your local.conf
10LOOPDEV ?= "/dev/loop1" 11LOOPDEV ?= "/dev/loop1"
11LOOPDEV_BOOT ?= "/dev/loop2" 12LOOPDEV_BOOT ?= "/dev/loop2"
12LOOPDEV_FS ?= "/dev/loop3" 13LOOPDEV_FS ?= "/dev/loop3"
@@ -28,7 +29,7 @@ IMAGE_CMD_sdimg () {
28 29
29 # If an SD image is already present, reuse and reformat it 30 # If an SD image is already present, reuse and reformat it
30 if [ ! -e ${SDIMG} ] ; then 31 if [ ! -e ${SDIMG} ] ; then
31 dd if=/dev/zero of=${SDIMG} bs=$(echo '255 * 63 * 512' | bc) count=444 32 dd if=/dev/zero of=${SDIMG} bs=$(echo '255 * 63 * 512' | bc) count=222
32 fi 33 fi
33 34
34 ${LOSETUP} ${LOOPDEV} ${SDIMG} 35 ${LOSETUP} ${LOOPDEV} ${SDIMG}