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-24 10:13:32 +0100
commit8ef2caa0eb4a80e202729776f6dbd1b4f3d24ee4 (patch)
tree806c9c00dee734b7d6581dfcac0b32d0d0f25bd6 /bitbake
parent2a3e232acf119911fbde4f5f5482adc2a7a3f1e2 (diff)
downloadpoky-8ef2caa0eb4a80e202729776f6dbd1b4f3d24ee4.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: ba79d4711c8010bb7f28784e18a0a42b98284d48) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 97183e10faf9862b5d9489d6e2c27ac77c3b697d) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> 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 1c1e008c6b..24002b879f 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