summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-12-10 10:14:25 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2012-12-12 15:29:38 -0200
commitf50ec7f0b3b3f9ea4b5eddf61cd491088c374263 (patch)
tree9b9fb42188a269ab03f52e9198c559c5dfd0063f /classes
parentc0903c257e75e6c6e6ebedb4f882b7fdff8acd00 (diff)
downloadmeta-fsl-arm-f50ec7f0b3b3f9ea4b5eddf61cd491088c374263.tar.gz
image_types_fsl.bbclass: Add support to install boot scripts
Some machines might want to provide boot scripts for use. This now can be accomplished using BOOT_SCRIPTS variable in following format: <source>:<destination> Thus any file in deploy directory can be installed in the boot partition of the sdcard, easily. Change-Id: Ic1eafd2be3559b5c9da43dcc6f54f1b480dbc647 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes')
-rw-r--r--classes/image_types_fsl.bbclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index 8414848..8a9fde4 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -119,6 +119,16 @@ generate_imx_sdcard () {
119 | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }') 119 | awk '/ 1 / { print substr($4, 1, length($4 -1)) / 1024 }')
120 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS 120 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
121 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage 121 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage
122
123 # Copy boot scripts
124 for item in ${BOOT_SCRIPTS}; do
125 src=`echo $item | awk -F':' '{ print $1 }'`
126 dst=`echo $item | awk -F':' '{ print $2 }'`
127
128 mcopy -i ${WORKDIR}/boot.img -s $src ::/$dst
129 done
130
131 # Copy device tree file
122 if [ -e "${KERNEL_IMAGETYPE}-${MACHINE}.dtb" ]; then 132 if [ -e "${KERNEL_IMAGETYPE}-${MACHINE}.dtb" ]; then
123 kernel_bin="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.bin`" 133 kernel_bin="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.bin`"
124 kernel_dtb="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.dtb`" 134 kernel_dtb="`readlink ${KERNEL_IMAGETYPE}-${MACHINE}.dtb`"