Skip to contentSkip to conversation

bitbake.conf: Add HOSTTOOLS_NONFATAL bits needed for OpenMandriva hosts

PATCH New [email protected] 1 participant 1 message Oct 27, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake.conf: Add HOSTTOOLS_NONFATAL bits needed for OpenMandriva hosts

From: Bernhard Rosenkränzer <[email protected]>

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).

---
 meta/conf/bitbake.conf | 8 ++++++++
 1 file changed, 8 insertions(+)
meta/conf/bitbake.conf +8 -0
index 62cdd9aa9c..e03bfd1b6b 100644
@@ -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"
 
Signature · 1 line
2.38.1