All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] meta-oe/numactl: Enable NUMA in the kernel config
@ 2018-04-10 17:09 Alistair Francis
  2018-04-10 17:32 ` ✗ patchtest: failure for " Patchwork
  2018-04-12 15:49 ` [PATCH] " Khem Raj
  0 siblings, 2 replies; 5+ messages in thread
From: Alistair Francis @ 2018-04-10 17:09 UTC (permalink / raw)
  To: openembedded-core

If a user has specified numa in their DISTRO_FEATURES then they should
have NUMA support enabled in the kernel. Without kernel support the
numactl program is not very useful.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
 meta-oe/recipes-kernel/linux/linux-yocto.inc           | 2 ++
 meta-oe/recipes-kernel/linux/linux-yocto_4.12.bbappend | 1 +
 meta-oe/recipes-kernel/linux/linux-yocto_4.14.bbappend | 1 +
 meta-oe/recipes-kernel/linux/linux-yocto_4.15.bbappend | 1 +
 meta-oe/recipes-support/numactl/numactl/numa.cfg       | 2 ++
 meta-oe/recipes-support/numactl/numactl_git.bb         | 1 +
 6 files changed, 8 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/linux/linux-yocto.inc
 create mode 100644 meta-oe/recipes-kernel/linux/linux-yocto_4.12.bbappend
 create mode 100644 meta-oe/recipes-kernel/linux/linux-yocto_4.14.bbappend
 create mode 100644 meta-oe/recipes-kernel/linux/linux-yocto_4.15.bbappend
 create mode 100644 meta-oe/recipes-support/numactl/numactl/numa.cfg

diff --git a/meta-oe/recipes-kernel/linux/linux-yocto.inc b/meta-oe/recipes-kernel/linux/linux-yocto.inc
new file mode 100644
index 0000000..9533eb6
--- /dev/null
+++ b/meta-oe/recipes-kernel/linux/linux-yocto.inc
@@ -0,0 +1,2 @@
+KERNEL_FEATURES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'numa', 'features/numa/numa.scc', '', d)}"
+
diff --git a/meta-oe/recipes-kernel/linux/linux-yocto_4.12.bbappend b/meta-oe/recipes-kernel/linux/linux-yocto_4.12.bbappend
new file mode 100644
index 0000000..161f9d3
--- /dev/null
+++ b/meta-oe/recipes-kernel/linux/linux-yocto_4.12.bbappend
@@ -0,0 +1 @@
+require linux-yocto.inc
diff --git a/meta-oe/recipes-kernel/linux/linux-yocto_4.14.bbappend b/meta-oe/recipes-kernel/linux/linux-yocto_4.14.bbappend
new file mode 100644
index 0000000..161f9d3
--- /dev/null
+++ b/meta-oe/recipes-kernel/linux/linux-yocto_4.14.bbappend
@@ -0,0 +1 @@
+require linux-yocto.inc
diff --git a/meta-oe/recipes-kernel/linux/linux-yocto_4.15.bbappend b/meta-oe/recipes-kernel/linux/linux-yocto_4.15.bbappend
new file mode 100644
index 0000000..161f9d3
--- /dev/null
+++ b/meta-oe/recipes-kernel/linux/linux-yocto_4.15.bbappend
@@ -0,0 +1 @@
+require linux-yocto.inc
diff --git a/meta-oe/recipes-support/numactl/numactl/numa.cfg b/meta-oe/recipes-support/numactl/numactl/numa.cfg
new file mode 100644
index 0000000..fe1394d
--- /dev/null
+++ b/meta-oe/recipes-support/numactl/numactl/numa.cfg
@@ -0,0 +1,2 @@
+CONFIG_NUMA=y
+CONFIG_ACPI_NUMA=y
diff --git a/meta-oe/recipes-support/numactl/numactl_git.bb b/meta-oe/recipes-support/numactl/numactl_git.bb
index b9cbcf0..ef2dab2 100644
--- a/meta-oe/recipes-support/numactl/numactl_git.bb
+++ b/meta-oe/recipes-support/numactl/numactl_git.bb
@@ -21,6 +21,7 @@ SRC_URI = "git://github.com/numactl/numactl \
     file://run-ptest \
     file://0001-define-run-test-target.patch \
 "
+SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'numa', ' file://numa.cfg', '', d)}"
 
 S = "${WORKDIR}/git"
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-04-12 19:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-10 17:09 [PATCH] meta-oe/numactl: Enable NUMA in the kernel config Alistair Francis
2018-04-10 17:32 ` ✗ patchtest: failure for " Patchwork
2018-04-12 15:49 ` [PATCH] " Khem Raj
2018-04-12 18:26   ` Alistair Francis
2018-04-12 19:06     ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.