diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
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..5ee6e8e14e --- /dev/null +++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | SUMMARY = "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 | SRCBRANCH = "next" | ||
9 | SRC_URI = "git://git.code.sf.net/p/libhugetlbfs/code;branch=${SRCBRANCH} \ | ||
10 | file://skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch \ | ||
11 | file://libhugetlbfs-avoid-search-host-library-path-for-cros.patch \ | ||
12 | file://fix-lib64-can-not-be-shiped-in-64bit-target.patch \ | ||
13 | file://tests-Makefile-install-static-4G-edge-testcases.patch \ | ||
14 | file://0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch \ | ||
15 | file://0001-install-perl-lib-to-directory-perl-instead-of-perl5.patch \ | ||
16 | " | ||
17 | SRCREV = "6824d18d5f33fdab445a8eff147fcdb6361f5791" | ||
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=${libdir}/libhugetlbfs/tests \ | ||
39 | INST_TESTSDIR64=${libdir}/libhugetlbfs/tests \ | ||
40 | install-tests | ||
41 | } | ||
42 | |||
43 | PARALLEL_MAKE_pn-${PN} = "" | ||
44 | |||
45 | PACKAGES =+ "${PN}-perl ${PN}-tests " | ||
46 | FILES_${PN}-dbg += "${libdir}/libhugetlbfs/tests/obj32/.debug ${libdir}/libhugetlbfs/tests/obj64/.debug" | ||
47 | FILES_${PN}-perl = "${libdir}/perl" | ||
48 | FILES_${PN}-tests += "${libdir}/libhugetlbfs/tests" | ||
49 | |||
50 | INHIBIT_PACKAGE_STRIP = "1" | ||
51 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||