summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e6fe491)
raw | patch | inline | side by side (parent: e6fe491)
author | Koen Kooi <koen@dominion.thruhere.net> | |
Fri, 4 Nov 2011 07:42:25 +0000 (08:42 +0100) | ||
committer | Koen Kooi <koen@dominion.thruhere.net> | |
Fri, 4 Nov 2011 07:42:25 +0000 (08:42 +0100) |
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
classes/sdcard_image.bbclass | patch | blob | history |
index bf0f0aa624d9db144563214c8a4cef012e2b49d8..9d582bdcb000697f5ff8635d4e1d2441c1eb1418 100644 (file)
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
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