From cdc86b7fbdbccb60774108b484491c9d190709dc Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Wed, 13 May 2020 12:02:20 +0800 Subject: [PATCH] rt-tests: add numa support for the affinity option - 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 Change-Id: Icdb7bf42da8b3a31ec391dbc0bfd420808c5b034 --- meta-stx/recipes-rt/rt-tests/rt-tests_%.bbappend | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 meta-stx/recipes-rt/rt-tests/rt-tests_%.bbappend 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 index 0000000..8049d8d --- /dev/null +++ b/meta-stx/recipes-rt/rt-tests/rt-tests_%.bbappend @@ -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" -- 2.16.6