summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/image_types.bbclass
diff options
context:
space:
mode:
authorRomuald Jeanne <romuald.jeanne@st.com>2023-03-10 11:36:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-14 17:10:00 +0000
commit7c2b42695d95e5916a13bbdeb26cb396e91a5b89 (patch)
tree82021c284d8a5b915f9e91f347428b57b7b96bbf /meta/classes-recipe/image_types.bbclass
parent7e133f89f605ffcb25e8b538145f19e3c27444ce (diff)
downloadpoky-7c2b42695d95e5916a13bbdeb26cb396e91a5b89.tar.gz
image_types: fix multiubi var init
Make sure to expand all MKUBIFS_ARGS_<label> and UBINIZE_ARGS_<label> vars in 'do_image_multiubi' task to use them to init the local 'mkubifs_args' and 'ubinize_args' vars. See [YOCTO #15065] (From OE-Core rev: 09d05215cf61981c7bc828cc0ff64c2fd5edc43c) Signed-off-by: Romuald JEANNE <romuald.jeanne@st.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/image_types.bbclass')
-rw-r--r--meta/classes-recipe/image_types.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes-recipe/image_types.bbclass b/meta/classes-recipe/image_types.bbclass
index 57f54f0588..bbddfaf272 100644
--- a/meta/classes-recipe/image_types.bbclass
+++ b/meta/classes-recipe/image_types.bbclass
@@ -213,7 +213,10 @@ multiubi_mkfs() {
213 fi 213 fi
214} 214}
215 215
216MULTIUBI_ARGS = "MKUBIFS_ARGS UBINIZE_ARGS"
217
216IMAGE_CMD:multiubi () { 218IMAGE_CMD:multiubi () {
219 ${@' '.join(['%s_%s="%s";' % (arg, name, d.getVar('%s_%s' % (arg, name))) for arg in d.getVar('MULTIUBI_ARGS').split() for name in d.getVar('MULTIUBI_BUILD').split()])}
217 # Split MKUBIFS_ARGS_<name> and UBINIZE_ARGS_<name> 220 # Split MKUBIFS_ARGS_<name> and UBINIZE_ARGS_<name>
218 for name in ${MULTIUBI_BUILD}; do 221 for name in ${MULTIUBI_BUILD}; do
219 eval local mkubifs_args=\"\$MKUBIFS_ARGS_${name}\" 222 eval local mkubifs_args=\"\$MKUBIFS_ARGS_${name}\"