mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
Please see https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265 for what changes are needed, and sed commands that can be used to make them en masse. I've verified that bitbake -c patch world works with these, but did not run a world build; the majority of recipes shouldn't need further fixups, but if there are some that still fall out, they can be fixed in followups. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
55 lines
1.7 KiB
BlitzBasic
55 lines
1.7 KiB
BlitzBasic
# Copyright (C) 2021 Mingli Yu <mingli.yu@windriver.com>
|
|
# Released under the MIT license (see COPYING.MIT for the terms)
|
|
|
|
SUMMARY = "General-purpose scalable concurrent malloc implementation"
|
|
|
|
DESCRIPTION = "jemalloc is a general purpose malloc(3) implementation that emphasizes \
|
|
fragmentation avoidance and scalable concurrency support."
|
|
|
|
HOMEPAGE = "https://github.com/jemalloc/jemalloc"
|
|
LICENSE = "BSD-2-Clause"
|
|
|
|
SECTION = "libs"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=ea061f8731d5e6a5761dfad951ef5f5f"
|
|
|
|
SRC_URI = "git://github.com/jemalloc/jemalloc.git;branch=dev;protocol=https \
|
|
file://run-ptest \
|
|
"
|
|
SRCREV = "630434bb0ac619f7beec927569782d924c459385"
|
|
PV_LONG := "${PV}-171-g${SRCREV}"
|
|
PV .= "+git"
|
|
|
|
|
|
inherit autotools ptest
|
|
|
|
EXTRA_AUTORECONF += "--exclude=autoheader"
|
|
|
|
EXTRA_OECONF:append:libc-musl = " --with-jemalloc-prefix=je_"
|
|
# For some reason VERSION file populated only in tarball distribution.
|
|
# Adding jemalloc version since this recipe is using source code from git tag
|
|
EXTRA_OECONF:append = " --with-version=${PV_LONG} --enable-xmalloc"
|
|
|
|
do_install:append() {
|
|
sed -i -e 's@${STAGING_DIR_HOST}@@g' \
|
|
-e 's@${STAGING_DIR_NATIVE}@@g' \
|
|
-e 's@${WORKDIR}@@g' ${D}${bindir}/jemalloc-config
|
|
}
|
|
|
|
do_compile_ptest() {
|
|
oe_runmake tests
|
|
}
|
|
|
|
do_install_ptest() {
|
|
install -d ${D}${PTEST_PATH}/tests
|
|
subdirs="unit integration stress "
|
|
for tooltest in ${subdirs}
|
|
do
|
|
cp -r ${B}/test/${tooltest} ${D}${PTEST_PATH}/tests
|
|
if find ${S}/test/${tooltest}/ -name '*.sh' -print -quit | grep -q .; then
|
|
cp ${S}/test/${tooltest}/*.sh ${D}${PTEST_PATH}/tests/${tooltest}
|
|
fi
|
|
done
|
|
find ${D}${PTEST_PATH}/tests \( -name "*.d" -o -name "*.o" \) -exec rm -f {} \;
|
|
}
|