aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-28 15:45:43 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-01 23:44:28 +0000
commitb5248cc232629b021d8934899326468c3ef46351 (patch)
treef035a039e81e4fdc21ba94631caddca578be7e5e
parent4f876982a856c54a8074c85346632e33caa7ef53 (diff)
downloadopenembedded-core-contrib-b5248cc232629b021d8934899326468c3ef46351.tar.gz
openembedded-core-contrib-b5248cc232629b021d8934899326468c3ef46351.tar.bz2
openembedded-core-contrib-b5248cc232629b021d8934899326468c3ef46351.zip
mutlilib: Handle WHITELIST_GPL-3.0 being unset
The code doesn't work if the variable is unset, fix that. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/multilib.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass
index ec2013198c..1ad654f546 100644
--- a/meta/classes/multilib.bbclass
+++ b/meta/classes/multilib.bbclass
@@ -77,9 +77,10 @@ python multilib_virtclass_handler () {
# Expand WHITELIST_GPL-3.0 with multilib prefix
pkgs = e.data.getVar("WHITELIST_GPL-3.0")
- for pkg in pkgs.split():
- pkgs += " " + variant + "-" + pkg
- e.data.setVar("WHITELIST_GPL-3.0", pkgs)
+ if pkgs:
+ for pkg in pkgs.split():
+ pkgs += " " + variant + "-" + pkg
+ e.data.setVar("WHITELIST_GPL-3.0", pkgs)
# DEFAULTTUNE can change TARGET_ARCH override so expand this now before update_data
newtune = e.data.getVar("DEFAULTTUNE:" + "virtclass-multilib-" + variant, False)