]> code.ossystems Code Review - openembedded-core.git/commitdiff
image_types.bbclass: Prompt error message on missing setting in UBI and UBIFS
authorChoong YinThong <yin.thong.choong@intel.com>
Thu, 22 Jun 2017 18:09:43 +0000 (11:09 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Jun 2017 19:54:53 +0000 (20:54 +0100)
Prompt error message to guide user add argument
MKUBIFS_ARGS and UBINIZE_ARGS on
every UBI and UBIFS image creation.

[YOCTO #11589]

Signed-off-by: Choong YinThong <yin.thong.choong@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/image_types.bbclass

index 7749b00098f65afae6759f10d8386279ad9906a2..f8692dc2ad4a4c2e6aac91a5d358c8c22fe1249f 100644 (file)
@@ -145,6 +145,12 @@ UBI_VOLNAME ?= "${MACHINE}-rootfs"
 multiubi_mkfs() {
        local mkubifs_args="$1"
        local ubinize_args="$2"
+    
+        # Added prompt error message for ubi and ubifs image creation.
+        if [ -z "$mkubifs_args"] || [ -z "$ubinize_args" ]; then
+            bbfatal "MKUBIFS_ARGS and UBINIZE_ARGS have to be set, see http://www.linux-mtd.infradead.org/faq/ubifs.html for details"
+        fi
+    
        if [ -z "$3" ]; then
                local vname=""
        else