From 05d91d63dde55db3d47272db0f87d3401b2cc05e Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 4 Nov 2011 08:42:25 +0100 Subject: sdcard_image bbclass: add support to copy over payload from rootfs to vfat Signed-off-by: Koen Kooi --- classes/sdcard_image.bbclass | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'classes') diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass index bf0f0aa6..9d582bdc 100644 --- a/classes/sdcard_image.bbclass +++ b/classes/sdcard_image.bbclass @@ -20,6 +20,9 @@ BOOTPARTNAME ?= "${MACHINE}" IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}" +# Files and/or directories to be copied into the vfat partition +FATPAYLOAD ?= "" + IMAGE_CMD_sdimg () { SDIMG=${WORKDIR}/sd.img @@ -103,6 +106,13 @@ IMAGE_CMD_sdimg () { cp -v ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.$suffix ${WORKDIR}/tmp-mnt-boot/u-boot.$suffix fi + if [ -n ${FATPAYLOAD} ] ; then + echo "Copying payload into VFAT" + for entry in ${FATPAYLOAD} ; do + cp -av $entry ${WORKDIR}/tmp-mnt-boot + done + fi + # Cleanup VFAT mount echo "Cleaning up VFAT mount" umount ${WORKDIR}/tmp-mnt-boot -- cgit v1.2.3-54-g00ecf