diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-04-09 06:55:14 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-04-10 08:31:04 -0700 |
| commit | 0adbbeacc7b2f21a46f5ce6ed3946ce7cef609e7 (patch) | |
| tree | e0f4843867e30a76bfa4f23fa312f0deb380e39c | |
| parent | 4be3b3acbaa4e6cb9759fcc3d477fa5b7c5e0a5f (diff) | |
| download | meta-openembedded-0adbbeacc7b2f21a46f5ce6ed3946ce7cef609e7.tar.gz | |
pv: Add valgrind dependency on platform where its available
valgrind does not build for RISCV platforms yet and so are some other
platforms ( taken from rsyslog recipe )
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/pv/pv_1.9.31.bb | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/pv/pv_1.9.31.bb b/meta-oe/recipes-support/pv/pv_1.9.31.bb index 2f1d38337f..578012fcfd 100644 --- a/meta-oe/recipes-support/pv/pv_1.9.31.bb +++ b/meta-oe/recipes-support/pv/pv_1.9.31.bb | |||
| @@ -18,7 +18,31 @@ inherit autotools gettext ptest | |||
| 18 | LDEMULATION:mipsarchn32 = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', 'elf32btsmipn32', 'elf32ltsmipn32', d)}" | 18 | LDEMULATION:mipsarchn32 = "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', 'elf32btsmipn32', 'elf32ltsmipn32', d)}" |
| 19 | export LDEMULATION | 19 | export LDEMULATION |
| 20 | 20 | ||
| 21 | RDEPENDS:${PN}-ptest += "bash coreutils tmux valgrind" | 21 | # for ptests |
| 22 | VALGRIND = "valgrind" | ||
| 23 | |||
| 24 | # valgrind supports armv7 and above | ||
| 25 | VALGRIND:armv4 = '' | ||
| 26 | VALGRIND:armv5 = '' | ||
| 27 | VALGRIND:armv6 = '' | ||
| 28 | |||
| 29 | # X32 isn't supported by valgrind at this time | ||
| 30 | VALGRIND:linux-gnux32 = '' | ||
| 31 | VALGRIND:linux-muslx32 = '' | ||
| 32 | |||
| 33 | # Disable for some MIPS variants | ||
| 34 | VALGRIND:mipsarchr6 = '' | ||
| 35 | VALGRIND:linux-gnun32 = '' | ||
| 36 | |||
| 37 | # Disable for powerpc64 with musl | ||
| 38 | VALGRIND:libc-musl:powerpc64 = '' | ||
| 39 | VALGRIND:libc-musl:powerpc64le = '' | ||
| 40 | |||
| 41 | # RISC-V support for valgrind is not there yet | ||
| 42 | VALGRIND:riscv64 = "" | ||
| 43 | VALGRIND:riscv32 = "" | ||
| 44 | |||
| 45 | RDEPENDS:${PN}-ptest += "bash coreutils tmux ${VALGRIND}" | ||
| 22 | RDEPENDS:${PN}-ptest:append:libc-musl = " musl-locales" | 46 | RDEPENDS:${PN}-ptest:append:libc-musl = " musl-locales" |
| 23 | RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-binary-localedata-c" | 47 | RDEPENDS:${PN}-ptest:append:libc-glibc = " glibc-binary-localedata-c" |
| 24 | 48 | ||
