diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-10 15:24:20 +0100 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-09-24 15:03:33 +0800 |
commit | ba79d4711c8010bb7f28784e18a0a42b98284d48 (patch) | |
tree | 4e5617fdff48469272e809889c26da065720d6d7 | |
parent | 19c5605b72e25e06f5ea57bcc1672650e7978a7f (diff) | |
download | bitbake-contrib-ba79d4711c8010bb7f28784e18a0a42b98284d48.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: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r-- | lib/bb/cookerdata.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py index 1c1e008c6..24002b879 100644 --- a/lib/bb/cookerdata.py +++ b/lib/bb/cookerdata.py @@ -342,6 +342,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() |