diff options
Diffstat (limited to 'meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb new file mode 100644 index 0000000000..950b64ee9b --- /dev/null +++ b/meta-oe/recipes-devtools/jemalloc/jemalloc_5.3.0.bb | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | # Copyright (C) 2021 Mingli Yu <mingli.yu@windriver.com> | ||
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
| 3 | |||
| 4 | SUMMARY = "General-purpose scalable concurrent malloc implementation" | ||
| 5 | |||
| 6 | DESCRIPTION = "jemalloc is a general purpose malloc(3) implementation that emphasizes \ | ||
| 7 | fragmentation avoidance and scalable concurrency support." | ||
| 8 | |||
| 9 | HOMEPAGE = "https://github.com/jemalloc/jemalloc" | ||
| 10 | LICENSE = "BSD-2-Clause" | ||
| 11 | |||
| 12 | SECTION = "libs" | ||
| 13 | |||
| 14 | LIC_FILES_CHKSUM = "file://COPYING;md5=ea061f8731d5e6a5761dfad951ef5f5f" | ||
| 15 | |||
| 16 | SRC_URI = "git://github.com/jemalloc/jemalloc.git;branch=master;protocol=https \ | ||
| 17 | file://run-ptest \ | ||
| 18 | " | ||
| 19 | |||
| 20 | # Workaround for https://github.com/llvm/llvm-project/issues/52765 | ||
| 21 | SRC_URI:append:libc-glibc:toolchain-clang = " file://0001-test-Disable-optimization-with-clang-for-aligned_all.patch " | ||
| 22 | |||
| 23 | SRCREV = "54eaed1d8b56b1aa528be3bdd1877e59c56fa90c" | ||
| 24 | |||
| 25 | S = "${WORKDIR}/git" | ||
| 26 | |||
| 27 | inherit autotools ptest | ||
| 28 | |||
| 29 | EXTRA_AUTORECONF += "--exclude=autoheader" | ||
| 30 | |||
| 31 | EXTRA_OECONF:append:libc-musl = " --with-jemalloc-prefix=je_" | ||
| 32 | |||
| 33 | do_install:append() { | ||
| 34 | sed -i -e 's@${STAGING_DIR_HOST}@@g' \ | ||
| 35 | -e 's@${STAGING_DIR_NATIVE}@@g' \ | ||
| 36 | -e 's@${WORKDIR}@@g' ${D}${bindir}/jemalloc-config | ||
| 37 | } | ||
| 38 | |||
| 39 | do_compile_ptest() { | ||
| 40 | oe_runmake tests | ||
| 41 | } | ||
| 42 | |||
| 43 | do_install_ptest() { | ||
| 44 | install -d ${D}${PTEST_PATH}/tests | ||
| 45 | subdirs="test/unit test/integration test/stress " | ||
| 46 | for tooltest in ${subdirs} | ||
| 47 | do | ||
| 48 | cp -r ${B}/${tooltest} ${D}${PTEST_PATH}/tests | ||
| 49 | done | ||
| 50 | find ${D}${PTEST_PATH}/tests \( -name "*.d" -o -name "*.o" \) -exec rm -f {} \; | ||
| 51 | } | ||
