diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2026-03-12 18:51:22 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-03-17 13:25:25 -0700 |
| commit | a3966a6b8e0538a74e4b068ad6dbc959e1b62c56 (patch) | |
| tree | ad5af504addbf91f42aa7bd262acdd0fada62881 /meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb | |
| parent | 7a84f7883216b883585a810943209bd6d7858bba (diff) | |
| download | meta-openembedded-a3966a6b8e0538a74e4b068ad6dbc959e1b62c56.tar.gz | |
gperftools: upgrade 2.18 -> 2.18.1
Changelog:
fix for compilation failure on PPC.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb')
| -rw-r--r-- | meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb b/meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb new file mode 100644 index 0000000000..f2244c43fa --- /dev/null +++ b/meta-oe/recipes-support/gperftools/gperftools_2.18.1.bb | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | SUMMARY = "Fast, multi-threaded malloc() and nifty performance analysis tools" | ||
| 2 | HOMEPAGE = "https://github.com/gperftools/gperftools" | ||
| 3 | DESCRIPTION = "The gperftools, previously called google-perftools, package contains some \ | ||
| 4 | utilities to improve and analyze the performance of C++ programs. \ | ||
| 5 | Included are an optimized thread-caching malloc() and cpu and heap profiling utilities. \ | ||
| 6 | " | ||
| 7 | |||
| 8 | LICENSE = "BSD-3-Clause" | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=762732742c73dc6c7fbe8632f06c059a" | ||
| 10 | |||
| 11 | DEPENDS:append:libc-musl = " libucontext" | ||
| 12 | |||
| 13 | SRCREV = "d837a42788ba591d5d791c3b686f2738e7a93562" | ||
| 14 | SRC_URI = "git://github.com/gperftools/gperftools;branch=master;protocol=https;tag=gperftools-${PV}" | ||
| 15 | |||
| 16 | SRC_URI:append:libc-musl = " \ | ||
| 17 | file://ppc-musl.patch \ | ||
| 18 | file://0002-src-base-elf_mem_image.cc-fix-build-for-musl.patch \ | ||
| 19 | file://0003-Makefile.am-disable-building-noinst-tests-for-musl.patch \ | ||
| 20 | " | ||
| 21 | |||
| 22 | inherit autotools | ||
| 23 | |||
| 24 | |||
| 25 | # On mips, we have the following error. | ||
| 26 | # do_page_fault(): sending SIGSEGV to ls for invalid read access from 00000008 | ||
| 27 | # Segmentation fault (core dumped) | ||
| 28 | COMPATIBLE_HOST:mipsarch = "null" | ||
| 29 | COMPATIBLE_HOST:riscv64 = "null" | ||
| 30 | COMPATIBLE_HOST:riscv32 = "null" | ||
| 31 | |||
| 32 | # Disable thumb1 | ||
| 33 | # {standard input}: Assembler messages: | ||
| 34 | # {standard input}:434: Error: lo register required -- `ldr pc,[sp]' | ||
| 35 | # Makefile:4538: recipe for target 'src/base/libtcmalloc_la-linuxthreads.lo' failed | ||
| 36 | ARM_INSTRUCTION_SET:armv5 = "arm" | ||
| 37 | ARM_INSTRUCTION_SET:toolchain-clang:arm = "arm" | ||
| 38 | |||
| 39 | EXTRA_OECONF:append:libc-musl:powerpc64le = " --disable-cpu-profiler" | ||
| 40 | EXTRA_OECONF:append:libc-musl:powerpc = " --disable-cpu-profiler" | ||
| 41 | PACKAGECONFIG ?= "libunwind static" | ||
| 42 | PACKAGECONFIG:remove:arm:libc-musl = "libunwind" | ||
| 43 | PACKAGECONFIG:remove:riscv64 = "libunwind" | ||
| 44 | PACKAGECONFIG:remove:riscv32 = "libunwind" | ||
| 45 | |||
| 46 | PACKAGECONFIG[libunwind] = "--enable-libunwind,--disable-libunwind,libunwind" | ||
| 47 | PACKAGECONFIG[static] = "--enable-static,--disable-static," | ||
| 48 | |||
| 49 | PACKAGE_BEFORE_PN += "libtcmalloc-minimal" | ||
| 50 | FILES:libtcmalloc-minimal = "${libdir}/libtcmalloc_minimal*${SOLIBS} ${libdir}/libtcmalloc_minimal_debug*${SOLIBS}" | ||
| 51 | |||
| 52 | # pprof tool requires Getopt::long and POSIX perl5 modules. | ||
| 53 | # Also runs `objdump` on each cpuprofile data file | ||
| 54 | RDEPENDS:${PN} += " \ | ||
| 55 | binutils \ | ||
| 56 | curl \ | ||
| 57 | perl-module-carp \ | ||
| 58 | perl-module-cwd \ | ||
| 59 | perl-module-getopt-long \ | ||
| 60 | perl-module-overloading \ | ||
| 61 | perl-module-posix \ | ||
| 62 | " | ||
| 63 | |||
| 64 | RDEPENDS:${PN} += "libtcmalloc-minimal (= ${EXTENDPKGV})" | ||
