summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorChoong YinThong <yin.thong.choong@intel.com>2017-06-22 11:09:43 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-28 20:55:08 +0100
commitb1ea384edbef9931976ee4f56d3d3e7db72afb1e (patch)
treed2693f1e4b2eddcfad2662f2ef107e5012a330ed /meta
parentf44c923bb9993a26d2cadcdea14dcfe0be64f3dc (diff)
downloadpoky-b1ea384edbef9931976ee4f56d3d3e7db72afb1e.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/image_types.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index 7749b00098..f8692dc2ad 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -145,6 +145,12 @@ UBI_VOLNAME ?= "${MACHINE}-rootfs"
145multiubi_mkfs() { 145multiubi_mkfs() {
146 local mkubifs_args="$1" 146 local mkubifs_args="$1"
147 local ubinize_args="$2" 147 local ubinize_args="$2"
148
149 # Added prompt error message for ubi and ubifs image creation.
150 if [ -z "$mkubifs_args"] || [ -z "$ubinize_args" ]; then
151 bbfatal "MKUBIFS_ARGS and UBINIZE_ARGS have to be set, see http://www.linux-mtd.infradead.org/faq/ubifs.html for details"
152 fi
153
148 if [ -z "$3" ]; then 154 if [ -z "$3" ]; then
149 local vname="" 155 local vname=""
150 else 156 else