[gnome-continuous-yocto/gnomeostree-3.28-rocko: 6558/8267] image_types.bbclass: Prompt error message on missing setting in UBI and UBIFS



commit b1ea384edbef9931976ee4f56d3d3e7db72afb1e
Author: Choong YinThong <yin thong choong intel com>
Date:   Thu Jun 22 11:09:43 2017 -0700

    image_types.bbclass: Prompt error message on missing setting in UBI and UBIFS
    
    Prompt error message to guide user add argument
    MKUBIFS_ARGS and UBINIZE_ARGS on
    every UBI and UBIFS image creation.
    
    [YOCTO #11589]
    
    (From OE-Core rev: 4a63fa70462eb5a780380b92f916cc8e295246fc)
    
    Signed-off-by: Choong YinThong <yin thong choong intel com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/classes/image_types.bbclass |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 7749b00..f8692dc 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]