diff options
-rw-r--r-- | meta-oe/recipes-devtools/perfetto/perfetto.bb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/meta-oe/recipes-devtools/perfetto/perfetto.bb b/meta-oe/recipes-devtools/perfetto/perfetto.bb index e8c4025bd8..4ab7a93714 100644 --- a/meta-oe/recipes-devtools/perfetto/perfetto.bb +++ b/meta-oe/recipes-devtools/perfetto/perfetto.bb | |||
@@ -49,6 +49,9 @@ COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm).*-linux*" | |||
49 | 49 | ||
50 | CCACHE_DISABLE = "1" | 50 | CCACHE_DISABLE = "1" |
51 | 51 | ||
52 | # Some musl hacks gets through compiling it for musl | ||
53 | # Nullifying -DTEMP_FAILURE_RETRY might be grossest of them | ||
54 | TUNE_CCARGS:append:libc-musl = " -D_LIBCPP_HAS_MUSL_LIBC -Dgetprogname\(\)=program_invocation_name -DTEMP_FAILURE_RETRY=" | ||
52 | FILES:${PN}:append = " \ | 55 | FILES:${PN}:append = " \ |
53 | ${bindir}/tracebox \ | 56 | ${bindir}/tracebox \ |
54 | " | 57 | " |
@@ -133,13 +136,6 @@ do_configure () { | |||
133 | cd .. | 136 | cd .. |
134 | fi | 137 | fi |
135 | # Done processing the Ninja files | 138 | # Done processing the Ninja files |
136 | |||
137 | # Workaround for the functions not supported by musl | ||
138 | if [ "${TCLIBC}" = "musl" ]; then | ||
139 | sed -e 's/strtoll_l(__a, \&__p2, __base, _LIBCPP_GET_C_LOCALE)/strtoll(__a, \&__p2, __base)/g' \ | ||
140 | -e 's/strtoull_l(__a, \&__p2, __base, _LIBCPP_GET_C_LOCALE)/strtoull(__a, \&__p2, __base)/g' \ | ||
141 | ${S}/buildtools/libcxx/include/locale -i | ||
142 | fi | ||
143 | } | 139 | } |
144 | 140 | ||
145 | # Perfetto generates a few different binaries, such as traced and traced_probes and perfetto. | 141 | # Perfetto generates a few different binaries, such as traced and traced_probes and perfetto. |