9375048e5fd9044d2408139b0edb96f1af3445fa
[platform/upstream/iotivity.git] / service / easy-setup / sampleapp / enrollee / tizen-sdb / README.txt
1 /******************************************************************
2  *
3  * Copyright 2015 Samsung Electronics All Rights Reserved.
4  *
5  *
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  ******************************************************************/
20
21 Build Procedure
22 ===============
23
24 1) If you are building first time, then delete GBS-ROOT folder from home directory.
25    Note: Default build server URL for Tizen is set in gbs configuration file @ iotivity/tools/tizen/.gbs.conf.
26          If needed, same can be modified as per appropriate target.
27 2) Make the changes to spec file.
28         File name: iotivity/tools/tizen/iotivity.spec
29         Attributes to change[line no. 28~32] :
30                 attribute               value
31                 es_target_enrollee      tizen
32                 es_role                 enrollee
33                 softap_mode             ENROLLEE_SOFTAP 
34
35 3) Go to "iotivity/" folder.
36 4) Execute following command(s) to start build based on transport selection required :
37
38 scons -f service/easy-setup/sampleapp/enrollee/tizen-sdb/EnrolleeSample/build/tizen/SConscript TARGET_OS=tizen TARGET_TRANSPORT=IP ROUTING=EP RELEASE=0 LOGGING=true
39                         ES_ROLE=enrollee ES_TARGET_ENROLLEE=android ES_SOFTAP_MODE=ENROLLEE_SOFTAP
40
41 (If needed, modify the parameters accordingly)
42 Note :- Upon successful execution of above command(s) RI library and sample console application(for tizen enrollee)
43         will be generated at path "~/GBS-ROOT/local/repos/<target>/armv7l/RPMS".
44
45 Procedure to Execute Sample App:
46 ================================
47     1) Copy the generated rpms(iotivity-1.0.0-0.armv7l.rpm,iotivity-devel-1.0.0-0.armv7l.rpm,iotivity-service-1.0.0-0.armv7l.rpm,com-oic-es-sample-0.1-1.armv7l.rpm) to Tizen Device
48        (say /opt/usr/media/xxx/)
49     2) sdb shell
50     3) su
51     4) cd /opt/usr/media/xxx/
52     5) change-booting-mode.sh --update
53
54     6) Install the rpms using the following commands:
55         a) rpm -Uvh iotivity-1.0.0-0.armv7l.rpm --force --nodeps
56         a) rpm -Uvh iotivity-devel-1.0.0-0.armv7l.rpm --force --nodeps
57         a) rpm -Uvh iotivity-service-1.0.0-0.armv7l.rpm --force --nodeps
58         b) rpm -Uvh com-oic-es-sample-0.1-1.armv7l.rpm --force --nodeps
59     7) For IP transport, apply net-config smack rules using below command:
60         a) chsmack -a "net-config" /usr/apps/com.oic.es.sample/bin/*
61         b) chsmack -e "net-config" /usr/apps/com.oic.es.sample/bin/*
62     7) RPM will be installed in "/usr/apps/"
63        Execute the sample app by below commands
64         i) cd /usr/apps/com.oic.es.sample/bin
65             a) ./enrollee_wifi