All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] Prompt error message on missing setting for UBI and UBIFS
@ 2017-06-19 19:36 yin.thong.choong
  2017-06-19 19:36 ` [PATCH v3] image_types.bbclass: Prompt error message on missing setting in " yin.thong.choong
  0 siblings, 1 reply; 4+ messages in thread
From: yin.thong.choong @ 2017-06-19 19:36 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 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] 4+ messages in thread

* [PATCH v3] image_types.bbclass: Prompt error message on missing setting in UBI and UBIFS
  2017-06-19 19:36 [PATCH v3] Prompt error message on missing setting for UBI and UBIFS yin.thong.choong
@ 2017-06-19 19:36 ` yin.thong.choong
  2017-06-20 12:36   ` Andrea Adami
  0 siblings, 1 reply; 4+ messages in thread
From: yin.thong.choong @ 2017-06-19 19:36 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..48338ac 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 local.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] 4+ messages in thread

* Re: [PATCH v3] image_types.bbclass: Prompt error message on missing setting in UBI and UBIFS
  2017-06-19 19:36 ` [PATCH v3] image_types.bbclass: Prompt error message on missing setting in " yin.thong.choong
@ 2017-06-20 12:36   ` Andrea Adami
  2017-06-21 13:31     ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Andrea Adami @ 2017-06-20 12:36 UTC (permalink / raw)
  To: Choong, Yin Thong
  Cc: otc-pg-team, Eggleton, Paul, Wold, Saul, core-dev, OE-core

On Mon, Jun 19, 2017 at 9:36 PM,  <yin.thong.choong@intel.com> wrote:
> 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..48338ac 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 local.conf for UBI and UBIFS image creation."

Why in local.conf ? It is not globally valid if you do multi-machine builds.
I'd say the right place is the machine.conf in the BSP layer.

Andrea

> +            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
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [PATCH v3] image_types.bbclass: Prompt error message on missing setting in UBI and UBIFS
  2017-06-20 12:36   ` Andrea Adami
@ 2017-06-21 13:31     ` Burton, Ross
  0 siblings, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2017-06-21 13:31 UTC (permalink / raw)
  To: Andrea Adami; +Cc: otc-pg-team, core-dev, OE-core, Wold, Saul, Eggleton, Paul

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

On 20 June 2017 at 13:36, Andrea Adami <andrea.adami@gmail.com> wrote:

> > +            bberror "MKUBIFS_ARGS and UBINIZE_ARGS argument have to set
> in local.conf for UBI and UBIFS image creation."
>
> Why in local.conf ? It is not globally valid if you do multi-machine
> builds.
> I'd say the right place is the machine.conf in the BSP layer.
>

Yes, they could be set anywhere, so don't specify an explicit location.
Just "MKUBIFS_ARGS and UBINIZE_ARGS have to be set for UBI image
generation" should be sufficient.

Ross

[-- Attachment #2: Type: text/html, Size: 940 bytes --]

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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-19 19:36 [PATCH v3] Prompt error message on missing setting for UBI and UBIFS yin.thong.choong
2017-06-19 19:36 ` [PATCH v3] image_types.bbclass: Prompt error message on missing setting in " yin.thong.choong
2017-06-20 12:36   ` Andrea Adami
2017-06-21 13:31     ` Burton, Ross

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.