bitbake: Fix handling of empty variables in local config files
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
04b2a78837
commit
14df571486
|
@ -550,7 +550,7 @@ class BBCooker:
|
|||
for key in data.dict:
|
||||
if key != "_data":
|
||||
value = data.getVar(key, False)
|
||||
if "${LAYERDIR}" in value:
|
||||
if value and "${LAYERDIR}" in value:
|
||||
data.setVar(key, value.replace("${LAYERDIR}", layer))
|
||||
|
||||
bb.data.delVar('LAYERDIR', data)
|
||||
|
|
Loading…
Reference in New Issue