]> code.ossystems Code Review - openembedded-core.git/commit
kernel: specify dependencies for compilation for config tasks
authorBruce Ashfield <bruce.ashfield@windriver.com>
Mon, 22 Oct 2018 06:20:10 +0000 (06:20 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Nov 2018 16:32:28 +0000 (16:32 +0000)
commitec5cc387ca6828c5dbb3d36c9a92e2d7654c616a
tree4a513aac13402a1f480cece3bf7b809762fb3268
parent74308b2ca81bb7a3d294ce344ba6e8fdf7ebca5d
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]

(From OE-Core rev: ff1bdd75d50f0ebac3d599e461685ace29559a82)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Sinan Kaya <okaya@kernel.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/kernel-yocto.bbclass
meta/classes/kernel.bbclass