[yocto] [PATCH 12/12] upgradehelper.py: don't build gcc-runtime when --skip-compilation

Robert Yang liezhi.yang at windriver.com
Wed Dec 6 23:37:17 PST 2017


It doesn't make any sense to build it when skip compile.

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
 upgradehelper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/upgradehelper.py b/upgradehelper.py
index c099445..6f100fe 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -565,7 +565,7 @@ class Updater(object):
             pkgs_ctx[p]['base_dir'] = self.uh_recipes_all_dir
         I(" ############################################################")
 
-        if pkgs_to_upgrade:
+        if pkgs_to_upgrade and not self.args.skip_compilation:
             I(" Building gcc runtimes ...")
             for machine in self.opts['machines']:
                 I("  building gcc runtime for %s" % machine)
-- 
2.7.4




More information about the yocto mailing list