rt-tests: add numa support for the affinity option 83/3683/1
authorJackie Huang <jackie.huang@windriver.com>
Wed, 13 May 2020 04:02:20 +0000 (12:02 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Wed, 13 May 2020 09:14:47 +0000 (17:14 +0800)
- Add a PACKAGECONFIG for numa support and enable it by default
- A python tool 'hwlatdetect' will be added if numa is enabled,
  so add dependency on python.

Issue-ID: INF-112
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Icdb7bf42da8b3a31ec391dbc0bfd420808c5b034

meta-stx/recipes-rt/rt-tests/rt-tests_%.bbappend [new file with mode: 0644]

diff --git a/meta-stx/recipes-rt/rt-tests/rt-tests_%.bbappend b/meta-stx/recipes-rt/rt-tests/rt-tests_%.bbappend
new file mode 100644 (file)
index 0000000..8049d8d
--- /dev/null
@@ -0,0 +1,28 @@
+#
+## Copyright (C) 2019 Wind River Systems, Inc.
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+PACKAGECONFIG ?= "numa"
+PACKAGECONFIG[numa] = ",,numactl,numactl"
+
+EXTRA_OEMAKE = "\
+    ${@bb.utils.contains('PACKAGECONFIG', 'numa', 'NUMA=1', 'NUMA=0', d)} \
+    PYLIB=${libdir}/python2.7/site-packages \
+"
+
+FILES_${PN} += "\
+    ${libdir}/python2.7/site-packages \
+"
+
+RDEPENDS_${PN} += "python"