diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-10 15:24:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-11 22:39:15 +0100 |
commit | 97183e10faf9862b5d9489d6e2c27ac77c3b697d (patch) | |
tree | 6cfe4ad75dc83be84486b26d9d904ef59e9c595c | |
parent | 5815a7258ebb8a989e0c6f5798853559d9413f02 (diff) | |
download | bitbake-97183e10faf9862b5d9489d6e2c27ac77c3b697d.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>
-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 e54858cf0..d6206b731 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() |