]> code.ossystems Code Review - openembedded-core.git/commitdiff
recipes-kernel/linux: Enable NUMA Kconfig from MACHINE_FEATURES
authorAlistair Francis <alistair.francis@wdc.com>
Fri, 25 May 2018 15:56:36 +0000 (08:56 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 2 Jul 2018 08:35:02 +0000 (09:35 +0100)
If the user has set numa in their MACHINE_FEATURES we should enable
NUMA support in the kernel config.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux/linux-yocto.inc

index 97f7ea9dbecf9506b1ca7c31d266564181c8616c..1ebfb606da9be8cd9143d0fa719380a013a08a32 100644 (file)
@@ -28,6 +28,8 @@ KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
 
 KERNEL_FEATURES_append_qemuall=" features/debug/printk.scc"
 
+KERNEL_FEATURES_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'numa', 'features/numa/numa.scc', '', d)}"
+
 # A KMACHINE is the mapping of a yocto $MACHINE to what is built
 # by the kernel. This is typically the branch that should be built,
 # and it can be specific to the machine or shared