summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-11-04 08:42:25 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2011-11-04 08:42:25 +0100
commit05d91d63dde55db3d47272db0f87d3401b2cc05e (patch)
tree7525f05077977b8f66a3cc35752f12fab783898b /classes
parente6fe491161bb36bb3199254b0792129ebe09ca8d (diff)
downloadmeta-ti-05d91d63dde55db3d47272db0f87d3401b2cc05e.tar.gz
sdcard_image bbclass: add support to copy over payload from rootfs to vfat
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'classes')
-rw-r--r--classes/sdcard_image.bbclass10
1 files changed, 10 insertions, 0 deletions
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}"
20 20
21IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}" 21IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}"
22 22
23# Files and/or directories to be copied into the vfat partition
24FATPAYLOAD ?= ""
25
23IMAGE_CMD_sdimg () { 26IMAGE_CMD_sdimg () {
24 SDIMG=${WORKDIR}/sd.img 27 SDIMG=${WORKDIR}/sd.img
25 28
@@ -103,6 +106,13 @@ IMAGE_CMD_sdimg () {
103 cp -v ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.$suffix ${WORKDIR}/tmp-mnt-boot/u-boot.$suffix 106 cp -v ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.$suffix ${WORKDIR}/tmp-mnt-boot/u-boot.$suffix
104 fi 107 fi
105 108
109 if [ -n ${FATPAYLOAD} ] ; then
110 echo "Copying payload into VFAT"
111 for entry in ${FATPAYLOAD} ; do
112 cp -av $entry ${WORKDIR}/tmp-mnt-boot
113 done
114 fi
115
106 # Cleanup VFAT mount 116 # Cleanup VFAT mount
107 echo "Cleaning up VFAT mount" 117 echo "Cleaning up VFAT mount"
108 umount ${WORKDIR}/tmp-mnt-boot 118 umount ${WORKDIR}/tmp-mnt-boot