From: Richard Purdie Date: Mon, 28 Feb 2022 15:45:43 +0000 (+0000) Subject: mutlilib: Handle WHITELIST_GPL-3.0 being unset X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=b5248cc232629b021d8934899326468c3ef46351;p=openembedded-core.git 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 --- 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)