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