diff options
Diffstat (limited to 'meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb')
-rw-r--r-- | meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb deleted file mode 100644 index 80af9873b..000000000 --- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +++ /dev/null | |||
@@ -1,79 +0,0 @@ | |||
1 | SUMMARY = "A library which provides easy access to huge pages of memory" | ||
2 | HOMEPAGE = "https://github.com/libhugetlbfs/libhugetlbfs" | ||
3 | LICENSE = "LGPL-2.1-only" | ||
4 | LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
5 | |||
6 | DEPENDS = "sysfsutils" | ||
7 | RDEPENDS:${PN} += "bash python3-core" | ||
8 | RDEPENDS:${PN}-tests += "bash python3-core" | ||
9 | |||
10 | PV = "2.23" | ||
11 | PE = "1" | ||
12 | |||
13 | SRCREV = "6b126a4d7da9490fa40fe7e1b962edcb939feddc" | ||
14 | SRC_URI = " \ | ||
15 | git://github.com/libhugetlbfs/libhugetlbfs.git;protocol=https;branch=master \ | ||
16 | file://skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch \ | ||
17 | file://libhugetlbfs-avoid-search-host-library-path-for-cros.patch \ | ||
18 | file://tests-Makefile-install-static-4G-edge-testcases.patch \ | ||
19 | file://0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch \ | ||
20 | file://libhugetlbfs-elf_i386-avoid-search-host-library-path.patch \ | ||
21 | file://0001-include-stddef.h-for-ptrdiff_t.patch \ | ||
22 | file://0002-Mark-glibc-specific-code-so.patch \ | ||
23 | file://0003-alloc.c-Avoid-sysconf-_SC_LEVEL2_CACHE_LINESIZE-on-l.patch \ | ||
24 | file://0004-shm.c-Mark-glibc-specific-changes-so.patch \ | ||
25 | file://0005-Include-dirent.h-for-ino_t.patch \ | ||
26 | file://0006-include-limits.h-for-PATH_MAX.patch \ | ||
27 | file://0001-huge_page_setup_helper-use-python3-interpreter.patch \ | ||
28 | file://0001-Revert-ld.hugetlbfs-fix-Ttext-segment-argument-on-AA.patch \ | ||
29 | file://0001-tests-makefile-Append-CPPFLAGS-rather-then-override.patch \ | ||
30 | " | ||
31 | |||
32 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" | ||
33 | |||
34 | S = "${WORKDIR}/git" | ||
35 | |||
36 | COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64|aarch64|arm).*-linux*" | ||
37 | |||
38 | LIBARGS = "LIB32=${baselib} LIB64=${baselib}" | ||
39 | LIBHUGETLBFS_ARCH = "${TARGET_ARCH}" | ||
40 | LIBHUGETLBFS_ARCH:powerpc = "ppc" | ||
41 | LIBHUGETLBFS_ARCH:powerpc64 = "ppc64" | ||
42 | LIBHUGETLBFS_ARCH:powerpc64le = "ppc64le" | ||
43 | EXTRA_OEMAKE = "'ARCH=${LIBHUGETLBFS_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' ${LIBARGS} BUILDTYPE=NATIVEONLY V=2" | ||
44 | PARALLEL_MAKE = "" | ||
45 | CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0" | ||
46 | |||
47 | export HUGETLB_LDSCRIPT_PATH="${S}/ldscripts" | ||
48 | |||
49 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
50 | |||
51 | #The CUSTOM_LDSCRIPTS doesn't work with the gold linker | ||
52 | inherit cpan-base | ||
53 | do_configure() { | ||
54 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'ld-is-gold', d)}" ]; then | ||
55 | sed -i 's/CUSTOM_LDSCRIPTS = yes/CUSTOM_LDSCRIPTS = no/' Makefile | ||
56 | fi | ||
57 | } | ||
58 | |||
59 | do_install() { | ||
60 | oe_runmake PREFIX=${prefix} DESTDIR=${D} \ | ||
61 | INST_TESTSDIR32=${libdir}/libhugetlbfs/tests \ | ||
62 | INST_TESTSDIR64=${libdir}/libhugetlbfs/tests \ | ||
63 | install-tests | ||
64 | } | ||
65 | |||
66 | |||
67 | PACKAGES =+ "${PN}-tests " | ||
68 | FILES:${PN} += "${libdir}/*.so" | ||
69 | FILES:${PN}-dev = "${includedir}" | ||
70 | FILES:${PN}-dbg += "${libdir}/libhugetlbfs/tests/obj32/.debug ${libdir}/libhugetlbfs/tests/obj64/.debug" | ||
71 | FILES:${PN}-tests += "${libdir}/libhugetlbfs/tests" | ||
72 | |||
73 | INSANE_SKIP:${PN} = "dev-so" | ||
74 | |||
75 | INHIBIT_PACKAGE_STRIP = "1" | ||
76 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
77 | |||
78 | # see https://github.com/libhugetlbfs/libhugetlbfs/issues/52 | ||
79 | SKIP_RECIPE[libhugetlbfs] ?= "Needs porting to glibc 2.34+" | ||