diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/sdcard_image.bbclass | 10 |
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 | ||
21 | IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}" | 21 | IMAGEDATESTAMP = "${@time.strftime('%Y.%m.%d',time.gmtime())}" |
22 | 22 | ||
23 | # Files and/or directories to be copied into the vfat partition | ||
24 | FATPAYLOAD ?= "" | ||
25 | |||
23 | IMAGE_CMD_sdimg () { | 26 | IMAGE_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 |