diff mbox series

[auh,1/3] upgrade-helper.py: remove gcc-runtime pre-build step from upgrade loop

Message ID 20260414053202.3869771-1-Qi.Chen@windriver.com
State New
Headers show
Series [auh,1/3] upgrade-helper.py: remove gcc-runtime pre-build step from upgrade loop | expand

Commit Message

ChenQi April 14, 2026, 5:32 a.m. UTC
From: Chen Qi <Qi.Chen@windriver.com>

Building gcc-runtime for each machine before upgrading recipes only
slows things down with no net benefit.

1) It will not error out early.
2) Building recipes will natually build gcc-runtime and things will be
   more parallelized.
3) Yocto project is in a good status and will very unlikely to have
   gcc-runtime build error.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 upgrade-helper.py | 15 ---------------
 1 file changed, 15 deletions(-)
diff mbox series

Patch

diff --git a/upgrade-helper.py b/upgrade-helper.py
index 40f31c4..2ceb722 100755
--- a/upgrade-helper.py
+++ b/upgrade-helper.py
@@ -468,21 +468,6 @@  class Updater(object):
 
             pkggroups_ctx.append({"name":",".join([pkg_ctx['PN'] for pkg_ctx in pkgs_ctx]),"pkgs":pkgs_ctx,"error":None, 'base_dir':self.uh_recipes_all_dir})
         I(" ############################################################")
-        if pkggroups_ctx and not self.args.skip_compilation:
-            I(" Building gcc runtimes ...")
-            for machine in self.opts['machines']:
-                I("  building gcc runtime for %s" % machine)
-                try:
-                    self.bb.complete("gcc-runtime", machine)
-                except Exception as e:
-                    E(" Can't build gcc-runtime for %s." % machine)
-
-                    if isinstance(e, Error):
-                        E(e.stdout + e.stderr)
-                    else:
-                        import traceback
-                        traceback.print_exc(file=sys.stdout)
-
         succeeded_pkggroups_ctx = []
         failed_pkggroups_ctx = []
         attempted_pkggroups = 0