]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
kernel-yocto.bbclass: Fixup do_kernel_configcheck usage of KMETA
authorRuss Dill <russ.dill@nikolamotor.com>
Thu, 21 Apr 2022 03:58:19 +0000 (20:58 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Apr 2022 19:40:23 +0000 (20:40 +0100)
commitf4a3e80a4a6f4f709d09940dcaf45b2b00654496
tree47b52927cbc0035f997eb9dbae97eec18e8ce609
parent493145c6f1bc92ab2b7a23e181641b09df87c9ff
kernel-yocto.bbclass: Fixup do_kernel_configcheck usage of KMETA

The do_kernel_configcheck task requires a meta directory, normally
set by ${KMETA}. The meta directory is taken as a relative path
from ${S}:

        outfile = "{}/{}/cfg/mismatch.txt".format( s, kmeta )

However, when checking for the presence of ${KMETA} the current
working directory is searched. This will almost always fail and
"kgit --meta" is used instead. If the user does have a path in
their current working directory that matches the ${KMETA}
variable but the path is not present within the kernel source
directory, the build will fail if it tries to write config errors/
warnings to that path.

If ${KMETA} is not set, the same problem exists with the hard-coded
"meta" directory.

Fix these issues by checking for ${KMETA} within ${S} rather than
the current working directory. Additionally, drop the hardcoded
backup directory "meta" as it hasn't been functioning and
probably has no users

Signed-off-by: Russ Dill <russ.dill@nikolamotor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
meta/classes/kernel-yocto.bbclass