diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 7fbfb5beb5..488bc610d2 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -550,7 +550,7 @@ class BBCooker: | |||
550 | for key in data.dict: | 550 | for key in data.dict: |
551 | if key != "_data": | 551 | if key != "_data": |
552 | value = data.getVar(key, False) | 552 | value = data.getVar(key, False) |
553 | if "${LAYERDIR}" in value: | 553 | if value and "${LAYERDIR}" in value: |
554 | data.setVar(key, value.replace("${LAYERDIR}", layer)) | 554 | data.setVar(key, value.replace("${LAYERDIR}", layer)) |
555 | 555 | ||
556 | bb.data.delVar('LAYERDIR', data) | 556 | bb.data.delVar('LAYERDIR', data) |