Added gbs build script for TM1 phone
authorAndriy Gudz <a.gudz@samsung.com>
Mon, 24 Apr 2017 15:56:32 +0000 (18:56 +0300)
committerAndriy Gudz <a.gudz@samsung.com>
Mon, 24 Apr 2017 16:14:51 +0000 (19:14 +0300)
network-manager/scripts/build-KantM-TV-gbs.sh [deleted file]
network-manager/scripts/build-kantm.sh [new file with mode: 0755]
network-manager/scripts/build-mobile-tm2-gbs.sh [deleted file]
network-manager/scripts/build-tm1.sh [new file with mode: 0755]
network-manager/scripts/build-tm2.sh [new file with mode: 0755]
network-manager/scripts/build.sh [new file with mode: 0755]
network-manager/scripts/deploy-kantm.sh
network-manager/scripts/deploy-tm1.sh [new file with mode: 0755]
network-manager/scripts/deploy-tm2.sh
network-manager/scripts/deploy.sh [new file with mode: 0755]
network-manager/scripts/gbs.conf

diff --git a/network-manager/scripts/build-KantM-TV-gbs.sh b/network-manager/scripts/build-KantM-TV-gbs.sh
deleted file mode 100755 (executable)
index 83b9fdd..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-SCRIPT_PATH=$(readlink -m ${0})
-SCRIPT_DIR=${SCRIPT_PATH%/*}
-ROOT_DIR=${SCRIPT_DIR}/..
-
-DEBUG_ON=0
-COVERAGE_ON=0
-
-for ARG in $*
-do
-    echo $ARG
-    if [ "DEBUG" = $ARG ];then
-        DEBUG_ON=1
-        echo 'DEBUG ON'
-    fi
-done
-
-cd $ROOT_DIR
-
-#init git repo for GBS
-git init
-git add .
-git commit -m "commit needed for GBS"
-
-# trap ctrl-c and call ctrl_c()
-trap cleanup INT
-
-function cleanup() {
-    rm -rf ${ROOT_DIR}/.git
-    exit 0
-}
-
-gbs --conf ${SCRIPT_DIR}/gbs.conf build -P profile.Main2017_KantM -A armv7l --include-all --threads 1 --define '__debug_install_post %{nil}' --define 'debug_package %{nil}' \
-    --define 'DEBUG '$DEBUG_ON
-
-
-#remove temporary files
-cleanup
diff --git a/network-manager/scripts/build-kantm.sh b/network-manager/scripts/build-kantm.sh
new file mode 100755 (executable)
index 0000000..7f0db96
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+SCRIPT_PATH=$(readlink -m ${0})
+SCRIPT_DIR=${SCRIPT_PATH%/*}
+
+${SCRIPT_DIR}/build.sh 2 $*
diff --git a/network-manager/scripts/build-mobile-tm2-gbs.sh b/network-manager/scripts/build-mobile-tm2-gbs.sh
deleted file mode 100755 (executable)
index fac9786..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-SCRIPT_PATH=$(readlink -m ${0})
-SCRIPT_DIR=${SCRIPT_PATH%/*}
-ROOT_DIR=${SCRIPT_DIR}/..
-
-for ARG in $*
-do
-    echo $ARG
-    if [ "DEBUG" = $ARG ];then
-        DEBUG_ON=1
-        echo 'DEBUG ON'
-    fi
-done
-
-cd $ROOT_DIR
-
-#init git repo for GBS
-git init
-git add .
-git commit -m "commit needed for GBS"
-
-# trap ctrl-c and call ctrl_c()
-trap cleanup INT
-
-function cleanup() {
-    rm -rf ${ROOT_DIR}/.git
-    exit 0
-}
-
-gbs --conf ${SCRIPT_DIR}/gbs.conf build -A aarch64 --include-all --threads 1 --define '__debug_install_post %{nil}' --define 'debug_package %{nil}' \
-    --define 'DEBUG '$DEBUG_ON
-
-#remove temporary files
-cleanup
diff --git a/network-manager/scripts/build-tm1.sh b/network-manager/scripts/build-tm1.sh
new file mode 100755 (executable)
index 0000000..f726007
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+SCRIPT_PATH=$(readlink -m ${0})
+SCRIPT_DIR=${SCRIPT_PATH%/*}
+
+${SCRIPT_DIR}/build.sh 1 $*
diff --git a/network-manager/scripts/build-tm2.sh b/network-manager/scripts/build-tm2.sh
new file mode 100755 (executable)
index 0000000..4da75c1
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+SCRIPT_PATH=$(readlink -m ${0})
+SCRIPT_DIR=${SCRIPT_PATH%/*}
+
+${SCRIPT_DIR}/build.sh 0 $*
diff --git a/network-manager/scripts/build.sh b/network-manager/scripts/build.sh
new file mode 100755 (executable)
index 0000000..1482b3f
--- /dev/null
@@ -0,0 +1,49 @@
+#!/bin/bash
+
+if [ -z "$1" ]; then
+       DEVICE=0
+else
+       DEVICE=$1
+fi
+
+case $DEVICE in
+       0) PROFILE=profile.tzmb_3.0_TM2 ; TARGET_ARCH=aarch64 ; GTEST_TYPE="main" ;;
+       1) PROFILE=profile.tzmb_3.0_TM1 ; TARGET_ARCH=armv7l ; GTEST_TYPE="main" ;;
+       2) PROFILE=profile.Main2017_KantM ; TARGET_ARCH=armv7l ; GTEST_TYPE="mock" ;;
+       ?) echo "error: unknown DEVICE number"; exit 1 ;;
+esac
+
+SCRIPT_PATH=$(readlink -m ${0})
+SCRIPT_DIR=${SCRIPT_PATH%/*}
+ROOT_DIR=${SCRIPT_DIR}/..
+
+for ARG in $*
+do
+    echo $ARG
+    if [ "DEBUG" = $ARG ];then
+        DEBUG_ON=1
+        echo 'DEBUG ON'
+    fi
+done
+
+cd $ROOT_DIR
+
+#init git repo for GBS
+git init
+git add .
+git commit -m "commit needed for GBS"
+
+# trap ctrl-c and call ctrl_c()
+trap cleanup INT
+
+function cleanup() {
+    rm -rf ${ROOT_DIR}/.git
+    exit 0
+}
+
+gbs --conf ${SCRIPT_DIR}/gbs.conf build -P ${PROFILE} -A ${TARGET_ARCH} --include-all --threads 1 \
+       --define '__debug_install_post %{nil}' --define 'debug_package %{nil}' \
+       --define 'DEBUG '$DEBUG_ON --define 'GTEST '$GTEST_TYPE
+
+#remove temporary files
+cleanup
index bccc45e..2512ddd 100755 (executable)
@@ -1,20 +1,6 @@
 #!/bin/bash
 
-SCRIPT_PATH="$(readlink -m ${0})"
-CONTROL_DIR="${SCRIPT_PATH%/*/*}/scripts"
-GBS_ROOT=~/GBS_ROOT_3.0
+SCRIPT_PATH=$(readlink -m ${0})
+SCRIPT_DIR=${SCRIPT_PATH%/*}
 
-TARGET_ARCH=armv7l
-
-GBS_RPMS_DIR=${GBS_ROOT}/local/repos/Main2017_KantM/${TARGET_ARCH}/RPMS
-
-sdb root on
-sdb shell mount -o remount,rw /
-sdb shell "id"
-
-RPMS_TO_PUSH="${GBS_RPMS_DIR}/nwmanager-*.rpm"
-sdb push ${RPMS_TO_PUSH} /tmp/
-
-sdb shell "rpm -Uvi --nodeps --force --replacefiles /tmp/nwmanager-*.rpm"
-
-sdb shell "/usr/apps/network-manager/test"
+${SCRIPT_DIR}/deploy.sh 2 $*
diff --git a/network-manager/scripts/deploy-tm1.sh b/network-manager/scripts/deploy-tm1.sh
new file mode 100755 (executable)
index 0000000..7c297cf
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+SCRIPT_PATH=$(readlink -m ${0})
+SCRIPT_DIR=${SCRIPT_PATH%/*}
+
+${SCRIPT_DIR}/deploy.sh 1 $*
index df687b2..732fd32 100755 (executable)
@@ -1,20 +1,6 @@
 #!/bin/bash
 
-SCRIPT_PATH="$(readlink -m ${0})"
-CONTROL_DIR="${SCRIPT_PATH%/*/*}/scripts"
-GBS_ROOT=~/GBS_ROOT_3.0
+SCRIPT_PATH=$(readlink -m ${0})
+SCRIPT_DIR=${SCRIPT_PATH%/*}
 
-TARGET_ARCH=aarch64
-
-GBS_RPMS_DIR=${GBS_ROOT}/local/repos/tizen_phone_arm64_3_0/${TARGET_ARCH}/RPMS
-
-sdb root on
-sdb shell mount -o remount,rw /
-sdb shell "id"
-
-RPMS_TO_PUSH="${GBS_RPMS_DIR}/nwmanager-*.rpm"
-sdb push ${RPMS_TO_PUSH} /tmp/
-
-sdb shell "rpm -Uvi --nodeps --force --replacefiles /tmp/nwmanager-*.rpm"
-
-sdb shell "/usr/apps/network-manager/test"
+${SCRIPT_DIR}/deploy.sh 0 $*
diff --git a/network-manager/scripts/deploy.sh b/network-manager/scripts/deploy.sh
new file mode 100755 (executable)
index 0000000..b5c44ef
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+if [ -z "$1" ]; then
+       DEVICE=0
+else
+       DEVICE=$1
+fi
+
+case $DEVICE in
+       0) BUILD_ROOT=GBS_ROOT_3.0_TM2 ; PROFILE=tzmb_3.0_TM2 ; TARGET_ARCH=aarch64 ;;
+       1) BUILD_ROOT=GBS_ROOT_3.0_TM1 ; PROFILE=tzmb_3.0_TM1 ; TARGET_ARCH=armv7l ;;
+       2) BUILD_ROOT=GBS_ROOT_3.0 ; PROFILE=Main2017_KantM ; TARGET_ARCH=armv7l ;;
+       ?) echo "error: unknown DEVICE number"; exit 1 ;;
+esac
+
+SCRIPT_PATH="$(readlink -m ${0})"
+CONTROL_DIR="${SCRIPT_PATH%/*/*}/scripts"
+
+GBS_RPMS_DIR=~/${BUILD_ROOT}/local/repos/Main2017_KantM/${TARGET_ARCH}/RPMS
+
+sdb root on
+sdb shell mount -o remount,rw /
+
+RPMS_TO_PUSH="${GBS_RPMS_DIR}/nwmanager-*.rpm"
+sdb shell rm -r /tmp/nm/
+sdb shell mkdir /tmp/nm/
+sdb push ${RPMS_TO_PUSH} /tmp/nm/
+
+sdb shell "rpm -Uvi --nodeps --force --replacefiles /tmp/nm/nwmanager-*.rpm"
+
+sdb shell "/usr/apps/network-manager/test"
index ec05a1b..1c953f3 100644 (file)
@@ -2,11 +2,16 @@
 #profile = profile.Main2017_KantM
 profile = profile.tizen_phone_arm64_3_0
 
+[obs.tizen_org]
+url = https://api.tizen.org
+
 [obs.tizentv]
 url = https://168.219.241.169/api
 user = obs_viewer
 passwdx = QlpoOTFBWSZTWRLL1vsAAASLgCEgAACSIJmAIAAxA0DQKZMGnqnmfEjRAP8XckU4UJASy9b7
 
+#############################################z KantM
+
 [repo.base_Main2017]
 url=http://10.103.211.119/tizen-rsa/tizen-3.0-base-main2017/standard/latest/repos/base/armv7l/packages/
 [repo.local_Main2017]
@@ -20,19 +25,30 @@ obs = obs.tizentv
 repos = repo.product_Main2017_KantM, repo.base_Main2017, repo.local_Main2017
 buildroot = ~/GBS_ROOT_3.0
 
-[obs.tizen_3.0]
-url = https://api.tizen.org
+############################################# Profile [profile.tzmb_3.0_TM2]
 
+[profile.tzmb_3.0_TM2]
+obs = obs.tizen_org
+repos = repo.tzmb_3.0_TM2_base, repo.tzmb_4.0_unified
+buildroot = ~/GBS_ROOT_3.0_TM2
 
-[repo.base.tizen_3.0_arm64]
-url = http://download.tizen.org/snapshots/tizen/base/latest/repos/arm64/packages/
+[repo.tzmb_3.0_TM2_base]
+url = http://download.tizen.org/snapshots/tizen/base/tizen-base_20170421.1/repos/arm64/packages/
+[repo.tzmb_4.0_unified]
+url = http://download.tizen.org/snapshots/tizen/unified/tizen-unified_20170421.3/repos/standard/packages/
+
+
+############################################# Profile [profile.tzmb_3.0_TM1]
+
+[profile.tzmb_3.0_TM1]
+obs = obs.tizen_org
+repos = repo.tzmb_3.0_TM1_base, repo.tzmb_3.0_TM1
+buildroot = ~/GBS_ROOT_3.0_TM1
+
+[repo.tzmb_3.0_TM1_base]
+url = http://download.tizen.org/snapshots/tizen/base/latest/repos/arm/packages/
+[repo.tzmb_3.0_TM1]
+url = http://download.tizen.org/snapshots/tizen/3.0-mobile/tizen-3.0-mobile_20170420.2/repos/arm-wayland/packages/
 
-[repo.tizen_3.0_arm64]
-#url = http://download.tizen.org/snapshots/tizen/mobile/latest/repos/arm64-wayland/packages/
-url = http://download.tizen.org/snapshots/tizen/unified/latest/repos/standard/packages/
 
 
-[profile.tizen_phone_arm64_3_0]
-obs = obs.tizen_3.0
-repos = repo.base.tizen_3.0_arm64, repo.tizen_3.0_arm64
-buildroot = ~/GBS_ROOT_3.0