1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-04-20 19:53:43 +00:00

sdcard_image bbclass: default to 4GiB, but use 2GiB for beaglebone

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Koen Kooi
2011-10-15 13:48:24 +02:00
parent 554db22c5b
commit 99ce37e4a9

View File

@@ -12,6 +12,10 @@ LOOPDEV ?= "/dev/loop1"
LOOPDEV_BOOT ?= "/dev/loop2"
LOOPDEV_FS ?= "/dev/loop3"
# Default to 4GiB images, but use 2GiB images for beaglebone
SDIMG_SIZE ?= "444"
SDIMG_SIZE_beaglebone = "222"
IMAGE_CMD_sdimg () {
SDIMG=${WORKDIR}/sd.img
@@ -29,7 +33,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=222
dd if=/dev/zero of=${SDIMG} bs=$(echo '255 * 63 * 512' | bc) count=${SDIMG_SIZE}
fi
${LOSETUP} ${LOOPDEV} ${SDIMG}