summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
commit1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch)
tree0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
downloadmeta-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.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..5ee6e8e14e
--- /dev/null
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
@@ -0,0 +1,51 @@
1SUMMARY = "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
8SRCBRANCH = "next"
9SRC_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"
17SRCREV = "6824d18d5f33fdab445a8eff147fcdb6361f5791"
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=${libdir}/libhugetlbfs/tests \
39 INST_TESTSDIR64=${libdir}/libhugetlbfs/tests \
40 install-tests
41}
42
43PARALLEL_MAKE_pn-${PN} = ""
44
45PACKAGES =+ "${PN}-perl ${PN}-tests "
46FILES_${PN}-dbg += "${libdir}/libhugetlbfs/tests/obj32/.debug ${libdir}/libhugetlbfs/tests/obj64/.debug"
47FILES_${PN}-perl = "${libdir}/perl"
48FILES_${PN}-tests += "${libdir}/libhugetlbfs/tests"
49
50INHIBIT_PACKAGE_STRIP = "1"
51INHIBIT_PACKAGE_DEBUG_SPLIT = "1"