Use checked-in gbs.conf by default
authorTomasz Olszak <t.olszak@samsung.com>
Tue, 7 Oct 2014 13:11:32 +0000 (15:11 +0200)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Also added possibility to pass profile name parameter to build scripts.
Fixed issue with not using build/gbs.conf file by default.
README.md updated with more verbose description introduced in beta/m34 branch.

Change-Id: I60bfccafc16e94bc32a1b4b4aaf4795d754d6525
Signed-off-by: Tomasz Olszak <t.olszak@samsung.com>
tizen_src/README.md
tizen_src/build/build_mobile.sh
tizen_src/build/build_tv.sh

index a2fc8b6..677b874 100755 (executable)
@@ -12,79 +12,39 @@ Building
 
 ### For Desktop build
 
-    $ ./build/build_desktop.sh
-
-#build_desktop.sh handles some parameters like --ccache
-#--skip-cmake and so on. To see more detailed documentation
-#invoke the script with -h parameter
+    $ ./build/build_desktop.sh [-h|--help] [--skip-gyp] [--skip-ninja] [--ccache] [--debug]
 
 ### For Mobile build
 Before Tizen build You need to install GBS.
 Please refer to (https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.
 platform.development%2Fhtml%2Fplatform_dev_env%2Fgit_build_system.htm)
 
-1. set repo urls in your gbs.conf as follows:
-    [general]
-    profile = profile.tizenmb
-
-    [profile.tizenmb]
-    user = <your id>
-    passwdx =
-    obs = obs.tizenmb
-    # The order is IMPORTANT!
-    repos = repo.tizenmb_supplement, repo.tizenmb_base
-
-    [obs.tizenmb]
-    url = http://slp-build.sec.samsung.net:81
-    # base repo
-
-    [repo.tizenmb_base]
-    url = http://10.251.52.177/tizenrepo/jpn-dcm/Redwood8974JPNDCM_20131218.006
-
-    # Supplementary repo for additional rpms packages required in gbs build
-    [repo.tizenmb_supplement]
-    url = http://10.251.52.177/tizenrepo/jpn-dcm/supplement
+    $ build/build_mobile.sh [--clean] [--define '_debug_mode 1'] [--define '_skip_gyp 1'] [--define 'nodebug 1']
+                            [--ccache]
 
-2. Build
-    $ ./build/build_mobile.sh
-#developer can add --ccache flags to improve development cycle
-    $ ./build/build_mobile.sh --ccache
+      [--define '_debug_mode 1']   excute debug build (default : release)
+      [--define '_skip_gyp 1']     skip gyp generate  (default : gyp generate)
+      [--define 'nodebug 1']       omit creation of debug packages (default: build debug packages too)
+                                   Note: To let binaries to be recreated without debug symbols, this should be
+                                         preceded by removing build directory.
+      [--ccache]                   see ### Using ccache inside gbs
+      [-P tizenmb_v2.3]            trigger tizen v2.3 build (default)
 
 ### For TV build
 Before Tizen build You need to install GBS.
 Please refer to (https://developer.tizen.org/help/index.jsp?topic=%2Forg.tizen.
 platform.development%2Fhtml%2Fplatform_dev_env%2Fgit_build_system.htm)
 
-1. set repo urls in your gbs.conf as follows:
-    [general]
-    profile = profile.tizentv
-
-    [profile.tizentv]
-    user = <your id>
-    passwdx =
-    obs = obs.tizentv
-    # The order is IMPORTANT!
-    repos = repo.tizentv_supplement, repo.tizentv, repo.tizen
-
-    [obs.tizentv]
-    url = https://168.219.241.168/api
-    user = obs_view
-    passwdx = obs_viewer
-
-    [repo.tizentv]
-    url = http://168.219.241.168/snapshots/tztv-2.2/profile/latest
-
-    [repo.tizen]
-    url = http://168.219.241.168/tizen-rsa/2.2.0_RC11_R1/tizen-2.2_20130717.6/
+    $ build/build_tv.sh [--clean] [--define '_debug_mode 1'] [--define '_skip_gyp 1'] [--define 'nodebug 1']
+                        [--ccache]
 
-    # Supplementary repo for additional rpms packages required in gbs build
-    [repo.tizentv_supplement]
-    url = http://10.251.52.177/tizenrepo/jpn-dcm/supplement_tv
+      [--define '_debug_mode 1']   excute debug build (default : release)
+      [--define '_skip_gyp 1']     skip gyp generate  (default : gyp generate)
+      [--define 'nodebug 1']       omit creation of debug packages (default: build debug packages too)
+                                   Note: To let binaries to be recreated without debug symbols, this should be
+                                         preceded by removing build directory.
+      [--ccache]                   see ### Using ccache inside gbs
 
-2. Build
-    $ ./build/build_tv.sh
-#developer can add --ccache flags to improve development cycle
-    $ ./build/build_tv.sh --ccache
 
 ### Using ccache inside gbs
 To use ccache for faster full builds use --ccache parameter:
index af91540..e669416 100755 (executable)
@@ -7,11 +7,17 @@ SCRIPTDIR=$(cd $(dirname $0); pwd -P)
 
 ${SCRIPTDIR}/apply_patches.sh
 
+PROFILE_NAME=$(echo "$@" | grep -Po "(?<=\-P\s)[^\s]*")
+
+if [ "$PROFILE_NAME" == "" ]; then
+  PROFILE_NAME=tizenmb_v2.3
+  PROFILE_FLAG="-P $PROFILE_NAME"
+fi
+
 TIZEN_VERSION="chromium_efl_tizen_version 2.3"
 
-if [ ! -f "$HOME/.gbs.conf" ]; then
-    CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
-    PROFILE_FLAG="-P tizenmb_v2.3"
+if [ "$USE_GLOBAL_GBS_CONF" == "" ]; then
+  CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
 fi
 
 gbs $CONF_FLAG build $PROFILE_FLAG -A armv7l --incremental \
index 03acf84..262df0d 100755 (executable)
@@ -7,11 +7,17 @@ SCRIPTDIR=$(cd $(dirname $0); pwd -P)
 
 ${SCRIPTDIR}/apply_patches.sh
 
+PROFILE_NAME=$(echo "$@" | grep -Po "(?<=\-P\s)[^\s]*")
+
+if [ "$PROFILE_NAME" == "" ]; then
+  PROFILE_NAME=tztv_v2.2.1_prehawk
+  PROFILE_FLAG="-P $PROFILE_NAME"
+fi
+
 TIZEN_VERSION="chromium_efl_tizen_version 2.2.1"
 
-if [ ! -f "$HOME/.gbs.conf" ]; then
-    CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
-    PROFILE_FLAG="-P tizentv_product"
+if [ "$USE_GLOBAL_GBS_CONF" == "" ]; then
+  CONF_FLAG="--conf ${SCRIPTDIR}/gbs.conf"
 fi
 
 gbs $CONF_FLAG build $PROFILE_FLAG -A armv7l --incremental \