summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb')
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
new file mode 100644
index 0000000000..7835300795
--- /dev/null
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
@@ -0,0 +1,51 @@
1DESCRIPTION = "A library which provides easy access to huge pages of memory"
2LICENSE = "LGPLv2.1"
3LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1"
4
5DEPENDS = "sysfsutils perl"
6RDEPENDS_${PN} += "python python-io python-lang python-subprocess python-resource"
7
8SRCREV = "49fedbe172343b3f7b39dc81bd2d81a18a34eb2f"
9SRC_URI = "git://git.code.sf.net/p/libhugetlbfs/code \
10 file://aarch64-support.patch \
11 file://aarch64-unit-test-fixes.patch \
12 file://add-PROT-NONE-to-the-mprotest-test.patch \
13 file://install64-fix.patch \
14 file://skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch \
15 file://libhugetlbfs-avoid-search-host-library-path-for-cros.patch \
16 file://fix-lib64-can-not-be-shiped-in-64bit-target.patch \
17"
18
19S = "${WORKDIR}/git"
20
21COMPATIBLE_HOST = "(x86_64|powerpc|powerpc64|aarch64).*-linux*"
22
23
24EXTRA_OEMAKE = "'ARCH=${TARGET_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' BUILDTYPE=NATIVEONLY ${LIBARGS}"
25CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0"
26
27TARGET_CC_ARCH += "${LDFLAGS}"
28
29#The CUSTOM_LDSCRIPTS doesn't work with the gold linker
30do_configure() {
31 if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
32 sed -i 's/CUSTOM_LDSCRIPTS = yes/CUSTOM_LDSCRIPTS = no/' Makefile
33 fi
34}
35
36do_install() {
37 oe_runmake PREFIX=${prefix} DESTDIR=${D} \
38 INST_TESTSDIR32=/opt/libhugetlbfs/tests \
39 INST_TESTSDIR64=/opt/libhugetlbfs/tests \
40 install-tests
41}
42
43PARALLEL_MAKE_pn-${PN} = ""
44
45PACKAGES =+ "${PN}-perl ${PN}-tests ${PN}-perl5"
46FILES_${PN}-dbg += "${libdir}/libhugetlbfs/tests/obj32/.debug ${libdir}/libhugetlbfs/tests/obj64/.debug"
47FILES_${PN}-perl = "${libdir}/perl"
48FILES_${PN}-perl5 = "${libdir}/perl5 "
49FILES_${PN}-tests += "/opt/libhugetlbfs/tests"
50
51INHIBIT_PACKAGE_DEBUG_SPLIT = "1"