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 <jackie.huang@windriver.com>
Signed-off-by: Babak Sarashki <Babak.SarAshki@windriver.com>
This commit is contained in:
Jackie Huang 2020-05-13 12:02:20 +08:00 committed by Babak Sarashki
parent a0d24c4ba8
commit aed3a323e2

View File

@ -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"