Update help info for specifing buildconf and buildroot in gbs.conf
authorZhang Qiang <qiang.z.zhang@intel.com>
Thu, 28 Nov 2013 02:34:17 +0000 (10:34 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Thu, 28 Nov 2013 05:27:32 +0000 (13:27 +0800)
build conf and build root can be specified in .gbs.conf using
'buildconf' and 'buildroot' keyes.

Fixes: #1219

Change-Id: I4f0afaae3359507e5c68aa8e9d30188b1677cddb

tools/gbs

index 351b769..d23cfb2 100755 (executable)
--- a/tools/gbs
+++ b/tools/gbs
@@ -151,7 +151,10 @@ def build_parser(parser):
     group.add_argument('-A', '--arch', help='build target arch. Supported arch '
                        'types are: %s' % ' '.join(cmd_build.SUPPORTEDARCHS))
     group.add_argument('-D', '--dist',
-                        help='specify project (build) configuration file')
+                        help='specify project (build) configuration file. '
+                        'User can specify build config in [profile.xx] '
+                        'section of gbs.conf using \'buildconf\' key, and '
+                        'the value is local path of build conf file')
     group.add_argument('-P', '--profile',
                         help='profile to be used for building, it is defined '
                              'in .gbs.conf, can be given without the '
@@ -174,9 +177,11 @@ def build_parser(parser):
     group = parser.add_argument_group('build env options')
     group.add_argument('-B', '--buildroot',
                         help='specify build root to setup chroot environment. '
-                        'By default, ~/GBS-ROOT/ will be used, and if no '
-                        '-B option, but TIZEN_BUILD_ROOT env exists, then '
-                        '${TIZEN_BUILD_ROOT} will used as build root')
+                        'By default, ~/GBS-ROOT/ will be used. User can specify'
+                        ' customized build root in gbs.conf with \'buildroot\' '
+                        'key, which can be set in [general] section for default'
+                        ' build root, or in [profile.xx] section for profile '
+                        'special build root')
     group.add_argument('-C', '--clean', action='store_true',
                         help='delete old build root before initialization')
     group.add_argument('--clean-once', action='store_true',