summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-10 15:24:20 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-11 22:39:19 +0100
commite75e89b418ac07a96f76b64a1ae027d7732e7084 (patch)
treef39a44054c9d0e8d735453dd755f0f8d2c225b21 /bitbake
parent38deb04a384f8e81d23dd6f088478632dfa62676 (diff)
downloadpoky-e75e89b418ac07a96f76b64a1ae027d7732e7084.tar.gz
bitbake: cookerdata: Show error for no BBLAYERS in bblayers.conf
If there is no BBLAYERS set in bblayers.conf show a more helpful error and exit. [YOCTO #14340] (Bitbake rev: 97183e10faf9862b5d9489d6e2c27ac77c3b697d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cookerdata.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index e54858cf02..d6206b7319 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -342,6 +342,9 @@ class CookerDataBuilder(object):
342 layers = (data.getVar('BBLAYERS') or "").split() 342 layers = (data.getVar('BBLAYERS') or "").split()
343 broken_layers = [] 343 broken_layers = []
344 344
345 if not layers:
346 bb.fatal("The bblayers.conf file doesn't contain any BBLAYERS definition")
347
345 data = bb.data.createCopy(data) 348 data = bb.data.createCopy(data)
346 approved = bb.utils.approved_variables() 349 approved = bb.utils.approved_variables()
347 350