diff options
| -rw-r--r-- | meta/classes-recipe/image_types.bbclass | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/meta/classes-recipe/image_types.bbclass b/meta/classes-recipe/image_types.bbclass index 764e6a5574..c6cb8f5336 100644 --- a/meta/classes-recipe/image_types.bbclass +++ b/meta/classes-recipe/image_types.bbclass | |||
| @@ -157,11 +157,7 @@ UBI_VOLTYPE ?= "dynamic" | |||
| 157 | UBI_IMGTYPE ?= "ubifs" | 157 | UBI_IMGTYPE ?= "ubifs" |
| 158 | 158 | ||
| 159 | write_ubi_config() { | 159 | write_ubi_config() { |
| 160 | if [ -z "$1" ]; then | 160 | local vname="$1" |
| 161 | local vname="" | ||
| 162 | else | ||
| 163 | local vname="_$1" | ||
| 164 | fi | ||
| 165 | 161 | ||
| 166 | cat <<EOF > ubinize${vname}-${IMAGE_NAME}.cfg | 162 | cat <<EOF > ubinize${vname}-${IMAGE_NAME}.cfg |
| 167 | [ubifs] | 163 | [ubifs] |
| @@ -183,7 +179,12 @@ multiubi_mkfs() { | |||
| 183 | bbfatal "MKUBIFS_ARGS and UBINIZE_ARGS have to be set, see http://www.linux-mtd.infradead.org/faq/ubifs.html for details" | 179 | bbfatal "MKUBIFS_ARGS and UBINIZE_ARGS have to be set, see http://www.linux-mtd.infradead.org/faq/ubifs.html for details" |
| 184 | fi | 180 | fi |
| 185 | 181 | ||
| 186 | write_ubi_config "$3" | 182 | if [ -z "$3" ]; then |
| 183 | local vname="" | ||
| 184 | else | ||
| 185 | local vname="_$3" | ||
| 186 | fi | ||
| 187 | write_ubi_config "${vname}" | ||
| 187 | 188 | ||
| 188 | if [ -n "$vname" ]; then | 189 | if [ -n "$vname" ]; then |
| 189 | mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${IMGDEPLOYDIR}/${IMAGE_NAME}${vname}${IMAGE_NAME_SUFFIX}.ubifs ${mkubifs_args} | 190 | mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${IMGDEPLOYDIR}/${IMAGE_NAME}${vname}${IMAGE_NAME_SUFFIX}.ubifs ${mkubifs_args} |
