All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4] Prompt error message on missing setting for
@ 2017-06-20 20:23 yin.thong.choong
  2017-06-20 20:23 ` [PATCH v4] image_types.bbclass: Prompt error message on missing setting in UBI and UBIFS yin.thong.choong
  0 siblings, 1 reply; 2+ messages in thread
From: yin.thong.choong @ 2017-06-20 20:23 UTC (permalink / raw)
  To: openembedded-core; +Cc: otc-pg-team, paul.eggleton, core-dev, saul.wold

From: Choong YinThong <yin.thong.choong@intel.com>

Prompt error message on missing setting in machine.conf for 
UBI and UBIFS image creation.

Choong YinThong (1):
  image_types.bbclass: Prompt error message on missing setting     in
    UBI and UBIFS

 meta/classes/image_types.bbclass | 8 ++++++++
 1 file changed, 8 insertions(+)

-- 
2.7.4



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH v4] image_types.bbclass: Prompt error message on missing setting in UBI and UBIFS
  2017-06-20 20:23 [PATCH v4] Prompt error message on missing setting for yin.thong.choong
@ 2017-06-20 20:23 ` yin.thong.choong
  0 siblings, 0 replies; 2+ messages in thread
From: yin.thong.choong @ 2017-06-20 20:23 UTC (permalink / raw)
  To: openembedded-core; +Cc: otc-pg-team, paul.eggleton, core-dev, saul.wold

From: Choong YinThong <yin.thong.choong@intel.com>

Prompt error message to guide user add argument
MKUBIFS_ARGS and UBINIZE_ARGS in local.conf on
every UBI and UBIFS image creation.

[YOCTO #11589]

Signed-off-by: Choong YinThong <yin.thong.choong@intel.com>
---
 meta/classes/image_types.bbclass | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 7749b00..e496385 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -145,6 +145,14 @@ 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
+            bberror "MKUBIFS_ARGS and UBINIZE_ARGS argument have to set in machine.conf for UBI and UBIFS image creation."
+            bberror "Detail please visit this link http://www.linux-mtd.infradead.org/faq/ubifs.html"
+            return
+        fi
+    
 	if [ -z "$3" ]; then
 		local vname=""
 	else
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-21  3:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-20 20:23 [PATCH v4] Prompt error message on missing setting for yin.thong.choong
2017-06-20 20:23 ` [PATCH v4] image_types.bbclass: Prompt error message on missing setting in UBI and UBIFS yin.thong.choong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.