[OE-core] [PATCH v6] image_types.bbclass: Prompt error message on missing setting in UBI and UBIFS
yin.thong.choong at intel.com
yin.thong.choong at intel.com
Thu Jun 22 18:09:43 UTC 2017
From: Choong YinThong <yin.thong.choong at intel.com>
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 at intel.com>
---
meta/classes/image_types.bbclass | 6 ++++++
1 file changed, 6 insertions(+)
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
--
2.7.4
More information about the Openembedded-core
mailing list