projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Providing build option to disable BLE server
[platform/upstream/iotivity.git]
/
resource
/
csdk
/
stack
/
samples
/
tizen
/
build
/
gbsbuild.sh
diff --git
a/resource/csdk/stack/samples/tizen/build/gbsbuild.sh
b/resource/csdk/stack/samples/tizen/build/gbsbuild.sh
old mode 100644
(file)
new mode 100755
(executable)
index
180c63d
..
141b8d8
--- a/
resource/csdk/stack/samples/tizen/build/gbsbuild.sh
+++ b/
resource/csdk/stack/samples/tizen/build/gbsbuild.sh
@@
-7,6
+7,7
@@
name=`echo $name|cut -d" " -f 1`
version=`echo $version|cut -d" " -f 1`
name=oicri
version=`echo $version|cut -d" " -f 1`
name=oicri
+gbsarch=${gbsarch:=armv7l}
echo $1
export TARGET_TRANSPORT=$1
echo $1
export TARGET_TRANSPORT=$1
@@
-26,8
+27,21
@@
export LOGGING=$5
echo $6
export ROUTING=$6
echo $6
export ROUTING=$6
+echo $7
+export WITH_TCP=$7
+
+echo $8
+export WITH_PROXY=$8
+
+echo $9
+export WITH_MQ=$9
+
+echo $10
+export DISABLE_BLE_SERVER=$10
+
echo $TARGET_TRANSPORT
echo $BUILD_SAMPLE
echo $TARGET_TRANSPORT
echo $BUILD_SAMPLE
+echo $WITH_MQ
rm -rf $name-$version
rm -rf $name-$version
@@
-41,15
+55,17
@@
mkdir ./tmp
mkdir ./tmp/extlibs/
mkdir ./tmp/packaging
cp -LR ./extlibs/tinycbor $sourcedir/tmp/extlibs
mkdir ./tmp/extlibs/
mkdir ./tmp/packaging
cp -LR ./extlibs/tinycbor $sourcedir/tmp/extlibs
-rm -rf $sourcedir/tmp/extlibs/tinycbor/tinycbor/.git
+cp -Rf ./extlibs/mbedtls $sourcedir/tmp/extlibs
cp -R ./extlibs/cjson $sourcedir/tmp/extlibs
cp -R ./extlibs/cjson $sourcedir/tmp/extlibs
-cp -R ./extlibs/tinydtls $sourcedir/tmp/extlibs
cp -R ./extlibs/timer $sourcedir/tmp/extlibs
cp -R ./extlibs/rapidxml $sourcedir/tmp/extlibs
cp -R ./extlibs/timer $sourcedir/tmp/extlibs
cp -R ./extlibs/rapidxml $sourcedir/tmp/extlibs
+cp -R ./extlibs/libcoap $sourcedir/tmp/extlibs
cp -LR ./extlibs/sqlite3 $sourcedir/tmp/extlibs
cp -R ./resource/csdk/stack/samples/tizen/build/packaging/*.spec $sourcedir/tmp/packaging
cp -R ./resource $sourcedir/tmp/
cp -R ./build_common/external_libs.scons $sourcedir/tmp/
cp -LR ./extlibs/sqlite3 $sourcedir/tmp/extlibs
cp -R ./resource/csdk/stack/samples/tizen/build/packaging/*.spec $sourcedir/tmp/packaging
cp -R ./resource $sourcedir/tmp/
cp -R ./build_common/external_libs.scons $sourcedir/tmp/
+mkdir -p $sourcedir/tmp/build_common/
+cp -a ./build_common/*.scons $sourcedir/tmp/build_common/
# copy dependency RPMs and conf files for tizen build
cp ./tools/tizen/*.rpm $sourcedir/tmp
# copy dependency RPMs and conf files for tizen build
cp ./tools/tizen/*.rpm $sourcedir/tmp
@@
-75,6
+91,11
@@
cp -R $sourcedir/iotivity.pc.in $sourcedir/tmp/
cd $sourcedir/tmp
echo `pwd`
cd $sourcedir/tmp
echo `pwd`
+# Prepare mbedTLS dependency
+$SHELL ./extlibs/mbedtls/prep.sh
+
+# Prepare TinyCBOR dependency
+$SHELL ./extlibs/tinycbor/prep.sh
whoami
# Initialize Git repository
whoami
# Initialize Git repository
@@
-86,8
+107,13
@@
if [ ! -d .git ]; then
git commit -m "Initial commit"
fi
git commit -m "Initial commit"
fi
+gbsprofile=${gbsprofile:=profile.tizen}
+gbscommand_prefix="gbs build -A ${gbsarch} -P ${gbsprofile} "
+nproc=$(expr 1 + $(expr `nproc --ignore=1` / 2 ) )
+gbscommand_prefix=${gbscommand_prefix}" --define '_smp_mflags -j${nproc}'"
+
echo "Calling core gbs build command"
echo "Calling core gbs build command"
-gbscommand=
"gbs build -A armv7l -B ~/GBS-ROOT-RI-OIC --include-all --repository ./ --define 'TARGET_TRANSPORT $1' --define 'SECURED $2' --define 'RELEASE $4' --define 'LOGGING $5' --define 'ROUTING $6
'"
+gbscommand=
${gbscommand_prefix}" -B ~/GBS-ROOT-RI-OIC --include-all --repository ./ --define 'TARGET_TRANSPORT $1' --define 'SECURED $2' --define 'RELEASE $4' --define 'LOGGING $5' --define 'ROUTING $6' --define 'WITH_TCP $7' --define 'WITH_PROXY $8' --define 'WITH_MQ $9' --define 'DISABLE_BLE_SERVER $10
'"
echo $gbscommand
if eval $gbscommand; then
echo "Core build is successful"
echo $gbscommand
if eval $gbscommand; then
echo "Core build is successful"
@@
-110,7
+136,7
@@
if echo $BUILD_SAMPLE|grep -qi '^ON$'; then
git commit -m "Initial commit"
fi
echo "Calling sample gbs build command"
git commit -m "Initial commit"
fi
echo "Calling sample gbs build command"
- gbscommand=
"gbs build -A armv7l -B ~/GBS-ROOT-RI-OIC --include-all --repository ./ --define 'TARGET_TRANSPORT $1' --define 'SECURED $2' --define 'RELEASE $4' --define 'LOGGING $5' --define 'ROUTING $6
'"
+ gbscommand=
${gbscommand_prefix}" -B ~/GBS-ROOT-RI-OIC --include-all --repository ./ --define 'TARGET_TRANSPORT $1' --define 'SECURED $2' --define 'RELEASE $4' --define 'LOGGING $5' --define 'ROUTING $6' --define 'WITH_TCP $7' --define 'WITH_PROXY $8' --define 'WITH_MQ $9
'"
echo $gbscommand
if eval $gbscommand; then
echo "Sample build is successful"
echo $gbscommand
if eval $gbscommand; then
echo "Sample build is successful"