diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2012-12-10 10:14:25 -0200 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-12-12 15:29:38 -0200 |
| commit | 1d78db4d08aa3f6fd6840a0d3a85f3299b439b3d (patch) | |
| tree | f08d42ecd3803d97993d3602091827fa4ea6eb07 /meta-fsl-arm | |
| parent | 5c33cb987ec98ee4072931ff8b5cc49157016ac9 (diff) | |
| download | meta-freescale-1d78db4d08aa3f6fd6840a0d3a85f3299b439b3d.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 'meta-fsl-arm')
| -rw-r--r-- | meta-fsl-arm/classes/image_types_fsl.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass index 8414848ca..8a9fde4f5 100644 --- a/meta-fsl-arm/classes/image_types_fsl.bbclass +++ b/meta-fsl-arm/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`" |
