3 spec=`ls build/tizen/packaging/*.spec`
4 version=`rpm --query --queryformat '%{version}\n' --specfile $spec`
6 name=`echo $name|cut -d" " -f 1`
7 version=`echo $version|cut -d" " -f 1`
12 export TARGET_TRANSPORT=$1
15 export BUILD_SAMPLE=$2
17 echo $TARGET_TRANSPORT
29 cp -R ./* $sourcedir/tmp/con
30 cp -R ./SConscript $sourcedir/tmp/con
31 cp -R ./src/wifi_adapter/SConscript $sourcedir/tmp/con/src/wifi_adapter/
32 cp -R ./src/bt_le_adapter/SConscript $sourcedir/tmp/con/src/bt_le_adapter/
33 cp -R ./src/bt_edr_adapter/SConscript $sourcedir/tmp/con/src/bt_edr_adapter/
34 cp -R ./common/SConscript $sourcedir/tmp/con/common/
35 cp -R ./lib/libcoap-4.1.1/SConscript $sourcedir/tmp/con/lib/libcoap-4.1.1/
36 cp -R ./samples/tizen/ $sourcedir/tmp/con/sample/
37 mkdir -p $sourcedir/tmp/con/sample/lib/tizen/ble/libs
38 cp -R ./lib/tizen/ble/libs/* $sourcedir/tmp/con/sample/lib/tizen/ble/libs/
40 cd $sourcedir/build/tizen
42 cp -R ./* $sourcedir/tmp/
43 cp SConscript $sourcedir/tmp/
44 cp SConstruct $sourcedir/tmp/
45 cp scons/SConscript $sourcedir/tmp/scons/
51 # Initialize Git repository
52 if [ ! -d .git ]; then
54 git config user.email "you@example.com"
55 git config user.name "Your Name"
57 git commit -m "Initial commit"
60 echo "Calling core gbs build command"
61 gbscommand="gbs build -A armv7l --include-all --define 'TARGET_TRANSPORT $1' --define 'RELEASE $3'"
63 if eval $gbscommand; then
64 echo "Core build is successful"
66 echo "Core build failed. Try 'sudo find . -type f -exec dos2unix {} \;' in the 'connectivity/' folder"
72 if echo $BUILD_SAMPLE|grep -qi '^ON$'; then
75 # Initialize Git repository
76 if [ ! -d .git ]; then
78 git config user.email "you@example.com"
79 git config user.name "Your Name"
81 git commit -m "Initial commit"
83 echo "Calling sample gbs build command"
84 gbscommand="gbs build -A armv7l --include-all --define 'TARGET_TRANSPORT $1'"
86 if eval $gbscommand; then
87 echo "Sample build is successful"
89 echo "Sample build is failed. Try 'sudo find . -type f -exec dos2unix {} \;' in the 'connectivity/' folder"