summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/numactl/numactl_2.0.19.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/numactl/numactl_2.0.19.bb')
-rw-r--r--meta/recipes-support/numactl/numactl_2.0.19.bb58
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-support/numactl/numactl_2.0.19.bb b/meta/recipes-support/numactl/numactl_2.0.19.bb
new file mode 100644
index 0000000000..62f3020fef
--- /dev/null
+++ b/meta/recipes-support/numactl/numactl_2.0.19.bb
@@ -0,0 +1,58 @@
1SUMMARY = "Development package for building Applications that use numa"
2HOMEPAGE = "http://oss.sgi.com/projects/libnuma/"
3DESCRIPTION = "Simple NUMA policy support. It consists of a numactl program \
4to run other programs with a specific NUMA policy and a libnuma to do \
5allocations with NUMA policy in applications."
6LICENSE = "GPL-2.0-only & LGPL-2.1-only"
7SECTION = "apps"
8
9inherit autotools-brokensep ptest
10
11LIC_FILES_CHKSUM = "file://README.md;beginline=19;endline=32;md5=9f34c3af4ed6f3f5df0da5f3c0835a43"
12
13SRCREV = "3bc85e37d5a30da6790cb7e8bb488bb8f679170f"
14
15SRC_URI = "git://github.com/numactl/numactl;branch=master;protocol=https \
16 file://Fix-the-test-output-format.patch \
17 file://Makefile \
18 file://run-ptest \
19 file://0001-define-run-test-target.patch \
20 "
21
22S = "${WORKDIR}/git"
23
24LDFLAGS:append:riscv64 = " -latomic"
25LDFLAGS:append:riscv32 = " -latomic"
26
27do_install() {
28 oe_runmake DESTDIR=${D} prefix=${D}/usr install
29 #remove the empty man2 directory
30 rm -r ${D}${mandir}/man2
31}
32
33do_compile_ptest() {
34 oe_runmake test
35}
36
37do_install_ptest() {
38 #install tests binaries
39 local test_binaries="distance ftok mbind_mig_pages migrate_pages move_pages \
40 mynode nodemap node-parse pagesize prefered randmap realloc_test \
41 tbitmap tshared"
42
43 [ ! -d ${D}/${PTEST_PATH}/test ] && mkdir -p ${D}/${PTEST_PATH}/test
44 for i in $test_binaries; do
45 install -m 0755 ${B}/test/.libs/$i ${D}${PTEST_PATH}/test
46 done
47
48 local test_scripts="checktopology checkaffinity printcpu regress regress2 \
49 shmtest runltp bind_range"
50 for i in $test_scripts; do
51 install -m 0755 ${B}/test/$i ${D}${PTEST_PATH}/test
52 done
53
54 install -m 0755 ${UNPACKDIR}/Makefile ${D}${PTEST_PATH}/
55 install -m 0755 ${B}/.libs/numactl ${D}${PTEST_PATH}/
56}
57
58RDEPENDS:${PN}-ptest = "bash"