support work_dir and buildconf options in gbs config, #1008
authorZhang Qiang <qiang.z.zhang@intel.com>
Thu, 6 Jun 2013 06:46:22 +0000 (14:46 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Thu, 6 Jun 2013 23:21:18 +0000 (07:21 +0800)
commit91103cef85c9b02908911c5917a5ce72186610e2
tree9cbeed894417bdccabbd9a8d18672d932cee8e54
parentb2ed62e5b566a34e891c6d467f48899d598bea71
support work_dir and buildconf options in gbs config, #1008

work_dir is the topdir of all tizen source packages, and pre-built
build-conf git project will under that directory based on latest tizen
source code structure.

The new conf manager also support string interpolation, expecially for
work_dir, which can be used in specifying pre-built dir and build conf

build conf can be specified in gbs.conf now.

Examples of gbs.conf:

    [general]
    tmpdir=/var/tmp/export_dir/
    profile = profile.tizen2.1
    work_dir=~/local-source

    [repo.tizen2.1]
    url=${work_dir}/pre-built/

    [profile.tizen2.1]
    repos=repo.tizen2.1
    buildconf=${work_dir}/project-conf/build.conf

Structure of tizen source code

$ cd ~/local-source
$ tree .
  .
  |-- gbs-conf
  |   `-- gbs.conf
  |-- pre-built
  |-- project-conf
  |-- framework
  |-- ...
  `-- toolchains

Change-Id: Ia0e47500523dae09e90c0d4bee115e46628e3368
gitbuildsys/cmd_build.py
gitbuildsys/conf.py