diff options
author | Li xin <lixin.fnst@cn.fujitsu.com> | 2015-07-24 15:43:05 +0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-07-30 21:22:24 +0200 |
commit | 1d645a437a5c44759963922e6843abab81dc3e04 (patch) | |
tree | 80d6e31d798fb4b71fa9063865830f8e8bb656dc /meta-oe/recipes-support/numactl/numactl_2.0.10.bb | |
parent | 2b79d6b4ee364f7dba2a025c89cd51b24bb92bb7 (diff) | |
download | meta-openembedded-contrib-1d645a437a5c44759963922e6843abab81dc3e04.tar.gz |
numactl: upgrade 2.0.9 -> 2.0.10
1) Update Fix-the-test-output-format.patch,since the contents
has been changed.
2) Update the checksum, beginline and endline of LICENSE file,
but the LICENSE has not been changed.
3) Remove "libdir=${D}/${libdir}" to avoid build Warning:
QA Issue: numactl: Files/directories were installed but not shipped in any package
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/numactl/numactl_2.0.10.bb')
-rw-r--r-- | meta-oe/recipes-support/numactl/numactl_2.0.10.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/numactl/numactl_2.0.10.bb b/meta-oe/recipes-support/numactl/numactl_2.0.10.bb new file mode 100644 index 0000000000..3a10ebbeed --- /dev/null +++ b/meta-oe/recipes-support/numactl/numactl_2.0.10.bb @@ -0,0 +1,46 @@ +SUMMARY = "Development package for building Applications that use numa" +DESCRIPTION = "Simple NUMA policy support. It consists of a numactl program \ +to run other programs with a specific NUMA policy and a libnuma to do \ +allocations with NUMA policy in applications." +LICENSE = "GPL-2.0 & LGPL-2.1" +SECTION = "apps" +RDEPENDS_${PN} = "perl" + +inherit autotools-brokensep ptest + +LIC_FILES_CHKSUM = "file://README;beginline=19;endline=32;md5=00b9fb4504ff2afcb7fb2a518780f412" + +SRC_URI = "ftp://oss.sgi.com/www/projects/libnuma/download/${BPN}-${PV}.tar.gz \ + file://fix-null-pointer.patch \ + file://Fix-the-test-output-format.patch \ + file://Makefile \ + file://run-ptest \ + " +SRC_URI[md5sum] = "682c38305b2596967881f3d77bc3fc9c" +SRC_URI[sha256sum] = "dbdac8fe74f13b2e2864bba352f1597ab1d3345c8c485d7805f58d66f414db61" + +# ARM does not currently support NUMA +COMPATIBLE_HOST = "^((?!arm).*)$" + +do_install() { + oe_runmake DESTDIR=${D} prefix=${D}/usr install + #remove the empty man2 directory + rm -r ${D}${mandir}/man2 +} + +do_install_ptest() { + #install tests binaries + local test_binaries="checkaffinity checktopology distance \ + ftok mbind_mig_pages migrate_pages move_pages mynode \ + nodemap pagesize prefered printcpu randmap realloc_test \ + regress regress2 runltp shmtest tbitmap tshared bind_range" + + [ ! -d ${D}/${PTEST_PATH}/test ] && mkdir -p ${D}/${PTEST_PATH}/test + for i in $test_binaries; do + install -m 0755 ${B}/test/$i ${D}${PTEST_PATH}/test + done + install -m 0755 ${WORKDIR}/Makefile ${D}${PTEST_PATH}/ + install -m 0755 ${B}/numactl ${D}${PTEST_PATH}/ +} + +RDEPENDS_${PN}-ptest = "bash" |