diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-04-30 18:04:04 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-04-30 18:08:56 -0300 |
commit | f75e68839960063cbbc22ebf46f25e555eaf77b0 (patch) | |
tree | ae4fedce6a451574786477821729c9e10092bb9a | |
parent | 010ca39e3bce2bfb24ab74e7e59ee0cb65791b3e (diff) | |
download | meta-fsl-arm-f75e68839960063cbbc22ebf46f25e555eaf77b0.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-- | classes/image_types_fsl.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass index 5d213e5..a6248f9 100644 --- a/classes/image_types_fsl.bbclass +++ b/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 |