summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 5fc1463e6..3b7ea2e83 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -403,7 +403,7 @@ def build_environment(d):
for var in bb.data.keys(d):
export = bb.data.getVarFlag(var, "export", d)
if export:
- os.environ[var] = bb.data.getVar(var, d, True)
+ os.environ[var] = bb.data.getVar(var, d, True) or ""
def prunedir(topdir):
# Delete everything reachable from the directory named in 'topdir'.