diff mbox series

[05/16] bitbake.conf/base: Further HOSTTOOLS cleanup

Message ID 20261130152704.3471590-5-richard.purdie@linuxfoundation.org
State New
Headers show
Series [01/16] bitbake/base: Implement RECIPE_HOSTTOOLS | expand

Commit Message

Richard Purdie Nov. 30, 2026, 3:26 p.m. UTC
Move several fetcher specific tools to become RECIPE_HOSTTOOLS
(scp, ssh, sftp, aws, gsutil). This means errors are clearer, earlier
for those with recipes that use them.

It is assumed mercurial (hg) now comes from mecurial-native.

ld.gold is being removed from binutils so we can drop.

The bazaar fetcher (bzr) was dropped so the hosttool can be too.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes-global/base.bbclass | 12 ++++++++++++
 meta/conf/bitbake.conf           | 17 +----------------
 2 files changed, 13 insertions(+), 16 deletions(-)
diff mbox series

Patch

diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index f814f7fec47..1c8b5102639 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -670,6 +670,18 @@  python () {
             d.appendVar("EXTRANATIVEPATH", ' python3-native ')
             d.appendVarFlag('do_fetch', 'depends', ' mercurial-native:do_populate_sysroot ca-certificates-native:do_populate_sysroot')
 
+        elif uri.scheme == "gs":
+            d.appendVar("RECIPE_HOSTTOOLS", ' gsutil')
+
+        elif uri.scheme == "sftp":
+            d.appendVar("RECIPE_HOSTTOOLS", ' sftp')
+
+        elif uri.scheme == "ssh":
+            d.appendVar("RECIPE_HOSTTOOLS", ' ssh scp')
+
+        elif uri.scheme == "s3":
+            d.appendVar("RECIPE_HOSTTOOLS", ' aws')
+
         # OSC packages should DEPEND on osc-native
         elif uri.scheme == "osc":
             d.appendVarFlag('do_fetch', 'depends', ' osc-native:do_populate_sysroot')
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 4cb4f9f9c6e..8ff14158d9a 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -541,22 +541,7 @@  HOSTTOOLS += " \
 "
 
 # Link to these if present
-HOSTTOOLS_NONFATAL += "aws gcc-ar gpg gpg-agent ld.bfd ld.gold nc pigz sftp socat ssh sudo"
-
-# Used by bzr fetcher
-HOSTTOOLS_NONFATAL += "bzr"
-
-# Used by ssh fetcher
-HOSTTOOLS_NONFATAL += "scp"
-
-# Used by Mercurial fetcher
-HOSTTOOLS_NONFATAL += "hg"
-
-# Used by gcp fetcher
-HOSTTOOLS_NONFATAL += "gsutil"
-
-# Link to git-lfs if present
-HOSTTOOLS_NONFATAL += "git-lfs"
+HOSTTOOLS_NONFATAL += "gcc-ar git-lfs gpg gpg-agent ld.bfd nc pigz socat sudo"
 
 CCACHE ??= ""