On 05/22/2018 08:14 PM, Burton, Ross wrote:
Bruce, can you review this please?
Ack'd. Give me a day or so, since I'm traveling, but will reply ASAP.
Bruce
Ross
On 23 May 2018 at 00:45, Alistair Francis <alistai...@gmail.com> wrote:
On Wed, May 2, 2018 at 1:49 PM, Alistair Francis
<alistair.fran...@wdc.com> wrote:
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.fran...@wdc.com>
Ping!
Alistair
---
meta/recipes-kernel/linux/files/numa.cfg | 4 ++++
meta/recipes-kernel/linux/linux-yocto.inc | 3 +++
2 files changed, 7 insertions(+)
create mode 100644 meta/recipes-kernel/linux/files/numa.cfg
diff --git a/meta/recipes-kernel/linux/files/numa.cfg
b/meta/recipes-kernel/linux/files/numa.cfg
new file mode 100644
index 0000000000..bb0f9ab20c
--- /dev/null
+++ b/meta/recipes-kernel/linux/files/numa.cfg
@@ -0,0 +1,4 @@
+CONFIG_NUMA=y
+CONFIG_ACPI_NUMA=y
+CONFIG_NUMA_BALANCING=y
+CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y
diff --git a/meta/recipes-kernel/linux/linux-yocto.inc
b/meta/recipes-kernel/linux/linux-yocto.inc
index 3bb872a32a..e8fb38b8f4 100644
--- a/meta/recipes-kernel/linux/linux-yocto.inc
+++ b/meta/recipes-kernel/linux/linux-yocto.inc
@@ -28,6 +28,9 @@ KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
KERNEL_FEATURES_append_qemuall=" features/debug/printk.scc"
+SRC_URI += "${@bb.utils.contains('MACHINE_FEATURES', 'numa', ' file://numa.cfg',
'', d)}"
+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
--
2.17.0
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core