mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
6d78face56
An earlier patch from Chunrong Guo <B40290@freescale.com> fixed the linker command scripts in ldscripts to comment out hard-coded paths for the linker search directories. This allows the command line to specifiy the proper paths without being overridden. However, the 32-bit ix86 scripts evidently were added after this earlier patch was created and were not corrected by it - so here we simply duplicate the technique in the earlier patch and extend it to correct the linker scripts for 32-bit ix86 builds. Signed-off-by: Gary S. Robertson <gary.robertson@linaro.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
71 lines
2.6 KiB
BlitzBasic
71 lines
2.6 KiB
BlitzBasic
SUMMARY = "A library which provides easy access to huge pages of memory"
|
|
HOMEPAGE = "https://github.com/libhugetlbfs/libhugetlbfs"
|
|
LICENSE = "LGPLv2.1"
|
|
LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1"
|
|
|
|
DEPENDS = "sysfsutils perl"
|
|
RDEPENDS_${PN} += "bash perl python python-io python-lang python-subprocess python-resource"
|
|
RDEPENDS_${PN}-tests += "bash"
|
|
|
|
PV = "2.18"
|
|
PE = "1"
|
|
|
|
SRCREV = "ea3f6b273f535aab38cefae30030774457bbbfe6"
|
|
SRC_URI = " \
|
|
git://github.com/libhugetlbfs/libhugetlbfs.git;protocol=https \
|
|
file://skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch \
|
|
file://libhugetlbfs-avoid-search-host-library-path-for-cros.patch \
|
|
file://tests-Makefile-install-static-4G-edge-testcases.patch \
|
|
file://0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch \
|
|
file://0001-aarch64-fix-cross-compilation.patch \
|
|
file://0001-ld.hugetlbfs-arm-arches-fix-page-size-and-text-offse.patch \
|
|
file://0001-replace-lib-lib64-hardcoded-values-by-LIBDIR32-LIBDI.patch \
|
|
file://0001-Extend-arm32-support-to-include-BE-variants.patch \
|
|
file://0001-Makefile-Recognize-all-ix86-arches.patch \
|
|
file://0001-x86-avoid-host-library-search-in-cross-dev.patch \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
COMPATIBLE_HOST = "(i586|x86_64|powerpc|powerpc64|aarch64|arm).*-linux*"
|
|
|
|
LIBARGS = "LIB32=${baselib} LIB64=${baselib}"
|
|
LIBHUGETLBFS_ARCH = "${TARGET_ARCH}"
|
|
LIBHUGETLBFS_ARCH_powerpc = "ppc"
|
|
LIBHUGETLBFS_ARCH_powerpc64 = "ppc64"
|
|
EXTRA_OEMAKE = "'ARCH=${LIBHUGETLBFS_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' ${LIBARGS} BUILDTYPE=NATIVEONLY V=2"
|
|
PARALLEL_MAKE = ""
|
|
CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0"
|
|
|
|
TARGET_CC_ARCH += "${LDFLAGS}"
|
|
|
|
#The CUSTOM_LDSCRIPTS doesn't work with the gold linker
|
|
do_configure() {
|
|
if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
|
|
sed -i 's/CUSTOM_LDSCRIPTS = yes/CUSTOM_LDSCRIPTS = no/' Makefile
|
|
fi
|
|
|
|
# fixup perl module directory hardcoded to perl5
|
|
sed -i 's/perl5/perl/g' Makefile
|
|
}
|
|
|
|
do_install() {
|
|
oe_runmake PREFIX=${prefix} DESTDIR=${D} \
|
|
INST_TESTSDIR32=${libdir}/libhugetlbfs/tests \
|
|
INST_TESTSDIR64=${libdir}/libhugetlbfs/tests \
|
|
install-tests
|
|
}
|
|
|
|
|
|
PACKAGES =+ "${PN}-perl ${PN}-tests "
|
|
FILES_${PN} += "${libdir}/*.so"
|
|
FILES_${PN}-dev = "${includedir}"
|
|
FILES_${PN}-dbg += "${libdir}/libhugetlbfs/tests/obj32/.debug ${libdir}/libhugetlbfs/tests/obj64/.debug"
|
|
FILES_${PN}-perl = "${libdir}/perl"
|
|
FILES_${PN}-tests += "${libdir}/libhugetlbfs/tests"
|
|
|
|
INSANE_SKIP_${PN} = "dev-so"
|
|
|
|
INHIBIT_PACKAGE_STRIP = "1"
|
|
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
|