From aed3a323e2addb9ddb2cf3ad41d7c273d7e88458 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. Signed-off-by: Jackie Huang Signed-off-by: Babak Sarashki --- .../recipes-rt/rt-tests/rt-tests_%.bbappend | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 meta-stx-integ/recipes-rt/rt-tests/rt-tests_%.bbappend diff --git a/meta-stx-integ/recipes-rt/rt-tests/rt-tests_%.bbappend b/meta-stx-integ/recipes-rt/rt-tests/rt-tests_%.bbappend new file mode 100644 index 0000000..0f694ac --- /dev/null +++ b/meta-stx-integ/recipes-rt/rt-tests/rt-tests_%.bbappend @@ -0,0 +1,13 @@ +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"