summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fe02476)
raw | patch | inline | side by side (parent: fe02476)
author | Koen Kooi <koen@dominion.thruhere.net> | |
Fri, 14 Oct 2011 10:37:10 +0000 (12:37 +0200) | ||
committer | Koen Kooi <koen@dominion.thruhere.net> | |
Fri, 14 Oct 2011 10:37:10 +0000 (12:37 +0200) |
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
classes/sdcard_image.bbclass | patch | blob | history |
index 9aed4f846b40391772206f373d9881961c0faf47..be7ab3b98209495c2eaa2033f48f4e64922a0882 100644 (file)
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"
# 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}