diff options
Diffstat (limited to 'meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb')
-rw-r--r-- | meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 51 |
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 @@ | |||
1 | DESCRIPTION = "A library which provides easy access to huge pages of memory" | ||
2 | LICENSE = "LGPLv2.1" | ||
3 | LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
4 | |||
5 | DEPENDS = "sysfsutils perl" | ||
6 | RDEPENDS_${PN} += "python python-io python-lang python-subprocess python-resource" | ||
7 | |||
8 | SRCREV = "49fedbe172343b3f7b39dc81bd2d81a18a34eb2f" | ||
9 | SRC_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 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | COMPATIBLE_HOST = "(x86_64|powerpc|powerpc64|aarch64).*-linux*" | ||
22 | |||
23 | |||
24 | EXTRA_OEMAKE = "'ARCH=${TARGET_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' BUILDTYPE=NATIVEONLY ${LIBARGS}" | ||
25 | CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0" | ||
26 | |||
27 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
28 | |||
29 | #The CUSTOM_LDSCRIPTS doesn't work with the gold linker | ||
30 | do_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 | |||
36 | do_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 | |||
43 | PARALLEL_MAKE_pn-${PN} = "" | ||
44 | |||
45 | PACKAGES =+ "${PN}-perl ${PN}-tests ${PN}-perl5" | ||
46 | FILES_${PN}-dbg += "${libdir}/libhugetlbfs/tests/obj32/.debug ${libdir}/libhugetlbfs/tests/obj64/.debug" | ||
47 | FILES_${PN}-perl = "${libdir}/perl" | ||
48 | FILES_${PN}-perl5 = "${libdir}/perl5 " | ||
49 | FILES_${PN}-tests += "/opt/libhugetlbfs/tests" | ||
50 | |||
51 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||