summaryrefslogtreecommitdiffstats
path: root/meta-fsl-arm
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-05-19 00:09:40 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2012-05-19 00:15:49 +0300
commitdfd5e77b477083b8627e9d7e0eaabf966fcc72fe (patch)
tree250039a1993fac53c8ca5e1157a2c6c8e6131a9d /meta-fsl-arm
parent0a9b06c8ac778a4b936de4d9140f85983a9dfa10 (diff)
downloadmeta-freescale-dfd5e77b477083b8627e9d7e0eaabf966fcc72fe.tar.gz
image_types_fsl.bbclass: Fix the calculation of BOOT_BLOCKS
In awk the first cell/item is $1 not $0 in this way the size of the partition from parted is actually $4 not $3. Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Diffstat (limited to 'meta-fsl-arm')
-rw-r--r--meta-fsl-arm/classes/image_types_fsl.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass
index 8471da2d5..daea8ce1e 100644
--- a/meta-fsl-arm/classes/image_types_fsl.bbclass
+++ b/meta-fsl-arm/classes/image_types_fsl.bbclass
@@ -77,7 +77,7 @@ generate_imx_sdcard () {
77 esac 77 esac
78 78
79 BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ 79 BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \
80 | awk '/ 2 / { print substr($3, 1, length($3 -1)) / 512 }') 80 | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 512 }')
81 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS 81 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
82 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage 82 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage
83 83
@@ -122,7 +122,7 @@ generate_mxs_sdcard () {
122 esac 122 esac
123 123
124 BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \ 124 BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDCARD} unit b print \
125 | awk '/ 2 / { print substr($3, 1, length($3 -1)) / 512 }') 125 | awk '/ 2 / { print substr($4, 1, length($4 -1)) / 512 }')
126 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS 126 mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img $BOOT_BLOCKS
127 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage 127 mcopy -i ${WORKDIR}/boot.img -s ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ::/uImage
128 128