[OE-core] [PATCH] meta-oe/numactl: Enable NUMA in the kernel config
Alistair Francis
alistair.francis at wdc.com
Tue Apr 10 17:09:57 UTC 2018
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 at 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
More information about the Openembedded-core
mailing list