]> code.ossystems Code Review - openembedded-core.git/commit
kernel: specify dependencies for compilation for config tasks
authorBruce Ashfield <bruce.ashfield@windriver.com>
Thu, 7 Jun 2018 02:07:26 +0000 (22:07 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Jun 2018 10:11:22 +0000 (11:11 +0100)
commitff1bdd75d50f0ebac3d599e461685ace29559a82
tree2afb6f1b1f0fc76329e19cc3ab44c0da93f8ecfc
parent01a4a4e24a2b61229be32f8852b2d5bc28c5689c
kernel: specify dependencies for compilation for config tasks

With recent kernels (i.e. 4.17+) the configuration phase of the kernel
will check for capabilities/options of the compiler for CVE and other
mitigation support.

For a general kernel, we want to ensure that CC is fully defined when
the config targets are invoked (so the proper compiler will be checked).

For linux-yocto, we also need to specify the compiler/tools dependencies
for the configme task since it executes before configure and hence the
main kernel build DEPENDS will not always be in the sysroot before it
executes. Without those dependencies the kernel will be incorrectly
configured (i.e. bison is missing) or the configuration will fail the
mitigation tests.

[YOCTO #12757]

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass
meta/classes/kernel.bbclass