[oe-commits] [openembedded-core] 10/28: image_types.bbclass: Prompt error message on missing setting in UBI and UBIFS
git at git.openembedded.org
git at git.openembedded.org
Wed Jun 28 19:56:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit 4a63fa70462eb5a780380b92f916cc8e295246fc
Author: Choong YinThong <yin.thong.choong at intel.com>
AuthorDate: 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]
Signed-off-by: Choong YinThong <yin.thong.choong at intel.com>
Signed-off-by: Ross Burton <ross.burton 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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list