mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
f44c923bb9
commit
b1ea384edb
@@ -145,6 +145,12 @@ UBI_VOLNAME ?= "${MACHINE}-rootfs"
|
|||||||
multiubi_mkfs() {
|
multiubi_mkfs() {
|
||||||
local mkubifs_args="$1"
|
local mkubifs_args="$1"
|
||||||
local ubinize_args="$2"
|
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
|
if [ -z "$3" ]; then
|
||||||
local vname=""
|
local vname=""
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user