option: add icecream support
authorJulien Isorce <j.isorce@samsung.com>
Wed, 13 Aug 2014 13:53:54 +0000 (14:53 +0100)
committerLi Jinjing <jinjingx.li@intel.com>
Wed, 8 Oct 2014 15:29:52 +0000 (23:29 +0800)
The icecream N option is forwarded to depanneur
which one forwards it to the build script

Change-Id: I43e84a4b483093e2919d74575d55c756307ea423
Signed-off-by: Julien Isorce <j.isorce@samsung.com>
Signed-off-by: Li Jinjing <jinjingx.li@intel.com>
gitbuildsys/cmd_build.py
tools/gbs

index 537a129..7b8d626 100644 (file)
@@ -237,6 +237,10 @@ def prepare_depanneur_opts(args):
         cmd_opts += ['--deps']
     if args.rdeps:
         cmd_opts += ['--rdeps']
+
+    if args.icecream > 0:
+        cmd_opts += ['--icecream=%s' % args.icecream]
+
     cmd_opts += ['--threads=%s' % args.threads]
     cmd_opts += ['--packaging-dir=%s' % get_packaging_dir(args)]
 
index 1cd94c7..f0c75e3 100755 (executable)
--- a/tools/gbs
+++ b/tools/gbs
@@ -225,6 +225,8 @@ def build_parser(parser):
                         help='working in offline mode. Start building directly')
     group.add_argument('--ccache', action="store_true",
                         help='use ccache to speed up rebuilds')
+    group.add_argument('--icecream', type=int, default=0,
+                        help='Use N parallel build jobs with icecream')
     group.add_argument('--threads', type=int, default=1,
                         help='number of threads to build multiple packages '
                         'in parallel')