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

[email protected]
Newsgroups org.yoctoproject.lists.yocto-patches
Message-ID <[email protected]>
From: Chen Qi <[email protected]>

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 <[email protected]>
---
 upgrade-helper.py | 15 ---------------
 1 file changed, 15 deletions(-)

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
-- 
2.49.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.