aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-10 15:24:20 +0100
committerSteve Sakoman <steve@sakoman.com>2021-09-24 12:38:18 -1000
commit7f7034a6a0893debd8a5288a5765146a8b2ab0a0 (patch)
tree38e30602895de33d4531a621e9af508541362a6e
parent0b08c0ed89951a2fc1f052d1bcae8b8bc5552c8e (diff)
downloadbitbake-7f7034a6a0893debd8a5288a5765146a8b2ab0a0.tar.gz
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] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 97183e10faf9862b5d9489d6e2c27ac77c3b697d) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--lib/bb/cookerdata.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py
index 44af7b2a2..26b9b0b41 100644
--- a/lib/bb/cookerdata.py
+++ b/lib/bb/cookerdata.py
@@ -348,6 +348,9 @@ class CookerDataBuilder(object):
layers = (data.getVar('BBLAYERS') or "").split()
broken_layers = []
+ if not layers:
+ bb.fatal("The bblayers.conf file doesn't contain any BBLAYERS definition")
+
data = bb.data.createCopy(data)
approved = bb.utils.approved_variables()