summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-04-30 18:04:04 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2012-04-30 18:08:56 -0300
commit830c4d502f037a4bc181d549e2b74a815c4c9d55 (patch)
tree33ea8357e51d06c86f9dc163271156f6f0959652
parent2ee18cb8676cc0f915823d5be20784ba64646388 (diff)
downloadmeta-freescale-830c4d502f037a4bc181d549e2b74a815c4c9d55.tar.gz
image_types_fsl.bbclass: avoid use of 'sed' to change partition type
The 'sed' might fail in some systems due user right and restrictions so we use 'dd' and 'echo' to do the same trick. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Reported-by: "John Passaniti" <jpassaniti@ashly.com>
-rw-r--r--meta-fsl-arm/classes/image_types_fsl.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-fsl-arm/classes/image_types_fsl.bbclass b/meta-fsl-arm/classes/image_types_fsl.bbclass
index 5d213e51a..a6248f936 100644
--- a/meta-fsl-arm/classes/image_types_fsl.bbclass
+++ b/meta-fsl-arm/classes/image_types_fsl.bbclass
@@ -66,7 +66,7 @@ IMAGE_CMD_sdcard () {
66 # Change partition type for mxs processor family 66 # Change partition type for mxs processor family
67 if [ "${SOC_FAMILY}" = "mxs" ]; then 67 if [ "${SOC_FAMILY}" = "mxs" ]; then
68 bbnote "Setting partition type to 0x53 as required for mxs' SoC family." 68 bbnote "Setting partition type to 0x53 as required for mxs' SoC family."
69 sed -i 's,.,\x53,450' ${SDCARD} 69 echo -n S | dd of=${SDCARD} bs=1 count=1 seek=450 conv=notrunc
70 fi 70 fi
71 71
72 case "${IMAGE_BOOTLOADER}" in 72 case "${IMAGE_BOOTLOADER}" in