Files
poky/meta/recipes-devtools
Alexander Kanavin 8f41af0ee9 mesa: do not rely on native llvm-config in target sysroot
Sadly the magic is not perfect: llvm-config contains a hardcoded
value for the libdir from the native configuration, and things will
break if the target build installs libraries somewhere else (e.g. lib64).

llvm-config in target bindir also needs a rpath adjustment,
otherwise it simply won't even run when e.g. building for arm on x86.

To avoid patching llvm-source let's simply add more cases to the
llvm-config wrapper script, so that falling through to llvm-config binary
is avoided. Fortunately those cases are all static in what they return,
even though llvm-config binary does poke around the file tree to arrive
at them (which is where breakage happens if native and target don't match
exactly wrt libdir).

I verified that this works by building mesa with llvm enabled for
qemuarm64 and with baselib set to 'lib64' - so that both the target
architecture and target libdir differ from native ones.

Upstream tickets:
https://github.com/llvm/llvm-project/issues/58984
https://github.com/mesonbuild/meson/issues/11043

(From OE-Core rev: d2860e67a37623b17fc9c6e1192f06a63b7d52ff)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 056431883e94296b767a479d029b914392e4fd7c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-12-01 19:35:11 +00:00
..
2022-08-31 10:40:07 +01:00
2021-11-25 21:55:10 +00:00
2022-07-01 11:31:42 +01:00
2022-09-26 22:04:35 +01:00
2022-07-12 23:56:10 +01:00
2022-09-17 07:47:07 +01:00
2022-05-13 17:56:29 +01:00
2022-09-17 07:47:07 +01:00
2021-11-03 10:12:42 +00:00
2022-11-24 15:30:06 +00:00
2022-08-16 14:57:58 +01:00
2022-09-17 07:47:08 +01:00
2022-09-17 07:47:08 +01:00
2022-03-23 12:13:49 +00:00
2022-07-18 11:47:37 +01:00
2022-03-11 06:56:01 +00:00
2022-11-04 23:31:48 +00:00
2022-07-23 13:55:26 +01:00
2022-12-01 19:35:10 +00:00
2022-11-04 23:31:48 +00:00
2021-08-02 15:44:10 +01:00
2022-09-17 07:47:07 +01:00
2022-09-17 07:47:07 +01:00
2021-08-02 15:44:10 +01:00
2022-08-25 11:08:07 +01:00
2022-09-17 07:47:08 +01:00
2022-09-02 15:58:26 +01:00
2022-08-21 22:51:42 +01:00
2022-04-26 18:25:08 +01:00
2021-12-08 20:22:10 +00:00
2022-11-24 15:30:06 +00:00
2022-09-08 14:59:39 +01:00
2022-09-08 14:59:39 +01:00