diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2011-10-14 12:37:10 +0200 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-10-14 12:37:10 +0200 |
| commit | a3226f913dfde6cae0ce165e2303cbc8933a8007 (patch) | |
| tree | dee6d162987eb8ba41ed90a1cdaf023e88910fe8 /classes | |
| parent | fe02476903080955f2175d62cbf3fdc1a1c68f79 (diff) | |
| download | meta-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.bbclass | 3 |
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" | |||
| 7 | LOSETUP ?= "/sbin/losetup" | 7 | LOSETUP ?= "/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 | ||
| 10 | LOOPDEV ?= "/dev/loop1" | 11 | LOOPDEV ?= "/dev/loop1" |
| 11 | LOOPDEV_BOOT ?= "/dev/loop2" | 12 | LOOPDEV_BOOT ?= "/dev/loop2" |
| 12 | LOOPDEV_FS ?= "/dev/loop3" | 13 | LOOPDEV_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} |
