]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
yocto-check-layer: Allow OE-Core to be tested
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Dec 2022 11:54:32 +0000 (11:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Dec 2022 23:04:58 +0000 (23:04 +0000)
commit4efc5ec83bc97e5731284ef3879f89fda4b8ef0b
tree1cb0949c7d02bc1d6d8a2f19f4f2e58148e8ec15
parent8c681c9e56065fac26088b4d2c7f22c09088a9b5
yocto-check-layer: Allow OE-Core to be tested

For unknown reasons we've never seemingly run the check layer script
against OE-Core itself. This isn't entirely straightforward as the core
layer is a bit of a special case, we can't for example compare signatures
against ourselve and we can't remove core from bblayers.conf.

Core does have distro, machine and software components too, in the case
of distro, our fallback default settings. Whilst the qemu machines could
be split into a seperate layer directory, core wouldn't then parse at all
standalone due to the lack of any machine so it seems a bit pointless to
do that.

These changes tweak the script to handle core's special cases, specifically
to allow distro and machine directories and to account for the README placed
a directory level higher than other layers.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit ba312ed228507d05f280aeb96819d671b01400b8)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
scripts/lib/checklayer/__init__.py
scripts/lib/checklayer/cases/bsp.py
scripts/lib/checklayer/cases/common.py
scripts/lib/checklayer/cases/distro.py
scripts/yocto-check-layer