diff mbox series

bitbake.conf: Add HOSTTOOLS_NONFATAL bits needed for OpenMandriva hosts

Message ID 20221027231934.504923-1-bero@baylibre.com
State New
Headers show
Series bitbake.conf: Add HOSTTOOLS_NONFATAL bits needed for OpenMandriva hosts | expand

Commit Message

Bernhard Rosenkränzer Oct. 27, 2022, 11:19 p.m. UTC
From: Bernhard Rosenkränzer <bero@baylibre.com>

Some Linux distributions (e.g. OpenMandriva, ROSA) try to support
gcc style LTO objects and clang style LTO objects at the same time
by replacing ar and friends with a wrapper script that calls the
binutils or llvm version of the tool depending on input.

For those, the binutils and llvm versions need to be available in
HOSTTOOLS as well (or the wrapper script will fail).

Signed-off-by: Bernhard Rosenkränzer <bero@baylibre.com>
---
 meta/conf/bitbake.conf | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 62cdd9aa9c..e03bfd1b6b 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -534,6 +534,14 @@  HOSTTOOLS += "${@'ip ping ps scp ssh stty' if (bb.utils.contains_any('IMAGE_CLAS
 # Link to these if present
 HOSTTOOLS_NONFATAL += "aws gcc-ar gpg gpg-agent ld.bfd ld.gold nc pigz sftp socat ssh sudo"
 
+# Some Linux distributions (e.g. OpenMandriva, ROSA) try to support
+# gcc style LTO objects and clang style LTO objects at the same time
+# by replacing ar and friends with a wrapper script that calls the
+# binutils or llvm version of the tool depending on input. For those,
+# the binutils and llvm versions need to be available in HOSTTOOLS
+# as well (or the wrapper script will fail)
+HOSTTOOLS_NONFATAL += "binutils-ar binutils-ranlib binutils-nm gcc-ranlib gcc-nm"
+
 # Temporary add few more detected in bitbake world
 HOSTTOOLS_NONFATAL += "join nl size yes zcat"