5 Please refer to the following page to install scons:
6 http://www.scons.org/doc/production/HTML/scons-user.html#chap-build-install
7 (Note: on Windows, install Python 2.x before installing scons)
9 * 2. IDE/SDK Pre-requites
10 To build for some OS (Android / Arduino / IOS ...), an IDE/SDK may be required,
11 please go to the relative page to download and install the required IDE/SDK.
15 1) Go to "connectivity/" folder.
17 2) Execute following command(s) to start build based on transport selection required :
19 -> Building for all transports :
20 $ scons TARGET_OS=linux TARGET_TRANSPORT=ALL
22 -> Building for a specific transport :
23 $ scons TARGET_OS=linux TARGET_TRANSPORT=WIFI
25 -> Building for multiple transports :
26 $ scons TARGET_OS=linux TARGET_TRANSPORT=WIFI,ETHERNET
28 -> Clean Build (all transports) :
29 scons TARGET_OS=linux TARGET_TRANSPORT=ALL -c (for clean)
32 3) The above command will build sample also.
34 For Enabling Secured server,
35 * Note: tinydtls library has to copied to "connectivity/lib/tinydtls" for secured build.
37 Secured Server will be only used for WIFI and ETHERNET transports.
39 Give command "scons TARGET_OS=linux TARGET_TRANSPORT=WIFI SECURED=1
41 or (For multiple transports will be mentioned using comma)
43 Give command "scons TARGET_OS=linux TARGET_TRANSPORT=WIFI,ETHERNET SECURED=1
47 1) Go to "connectivity/" folder.
49 2) Execute following command(s) to start build based on transport selection required :
51 -> Building for all transports :
52 $ scons TARGET_OS=android TARGET_TRANSPORT=ALL TARGET_ARCH=x86 ANDROID_NDK=your_ndk_path
54 -> Building for a specific transport :
55 $ scons TARGET_OS=android TARGET_TRANSPORT=WIFI TARGET_ARCH=x86 ANDROID_NDK=your_ndk_path
57 -> Building for multiple transports :
58 $ scons TARGET_OS=android TARGET_TRANSPORT=WIFI,BT TARGET_ARCH=x86 ANDROID_NDK=your_ndk_path
60 Note :- Upon successful execution of above command(s) CA library will be generated at path
61 "~/connectivity/build/out/android/TARGET_ARCH/release or debug".
65 1) If you are building first time, then delete GBS-ROOT folder from home directory.
67 2) Go to "connectivity/" folder.
69 3) Execute following command(s) to start build based on transport selection required :
71 -> Building for all transports :
72 $ scons TARGET_OS=tizen TARGET_TRANSPORT=ALL
74 -> Building for a specific transport :
75 $ scons TARGET_OS=tizen TARGET_TRANSPORT=WIFI
77 -> Building for multiple transports :
78 $ scons TARGET_OS=tizen TARGET_TRANSPORT=WIFI,BT,BLE
80 4) By default, above command will build sample also.
81 To disable building sample, add BUILD_SAMPLE=OFF to the build command.
82 Ex: scons TARGET_OS=tizen TARGET_TRANSPORT=ALL BUILD_SAMPLE=OFF
83 Making this flag ON builds the sample.
85 Note :- Upon successful execution of above command(s) CA library and sample applications will be
86 generated at path "~/GBS-ROOT/local/repos/redwood/armv7l/RPMS".
90 Note :- Currently Mega & Due build is supported.
92 1) Set up Arduino first before building. Refer to "connectivity\build\arduino\Arduino_Setup_README.txt" file for help.
94 2) Go to "connectivity/" folder.
96 3) Execute following command to start build :
99 $ scons TARGET_OS=arduino TARGET_TRANSPORT=<transport> TARGET_ARCH=avr BOARD=mega ARDUINO_HOME=<path_to_arduino_installation>
101 $ scons TARGET_OS=arduino TARGET_TRANSPORT=<transport> TARGET_ARCH=arm BOARD=arduino_due_x_dbg ARDUINO_HOME=<path_to_arduino_installation>
102 NOTE: BOARD=arduino_due_x_dbg|arduino_due_x. Default is arduino_due_x_dbg.
104 Possible values for <transport> are:
106 $ scons TARGET_OS=arduino TARGET_TRANSPORT=ETHERNET TARGET_ARCH=avr BOARD=mega ARDUINO_HOME=<path_to_arduino_installation>
108 $ scons TARGET_OS=arduino TARGET_TRANSPORT=WIFI TARGET_ARCH=avr BOARD=mega ARDUINO_HOME=<path_to_arduino_installation>
110 $ scons TARGET_OS=arduino TARGET_TRANSPORT=BLE TARGET_ARCH=avr BOARD=mega ARDUINO_HOME=<path_to_arduino_installation>
112 Note :- Only single transport can be built at a time for Arduino.
114 4) The above command will build sample also. The "CASample.hex" can be found at "/samples/arduino/"
116 5) After building sample, script will try to install on "/dev/ttyACM0" port in 'sudo' mode.
117 To skip installation, set command line argument 'UPLOAD=false'.
118 "scons TARGET_OS=arduino TARGET_TRANSPORT=ETHERNET TARGET_ARCH=avr BOARD=mega ARDUINO_HOME=<path_to_arduino_installation> UPLOAD=false"
120 6) To set BLE Shield Name, include the option DEVICE_NAME during scons build.
122 -> $ scons TARGET_OS=arduino TARGET_TRANSPORT=ETHERNET TARGET_ARCH=avr BOARD=mega ARDUINO_HOME=<path_to_arduino_installation> DEVICE_NAME=OIC
124 Specified Device name length MUST be less than 10 characters. RBL Library has this limitation.
125 By Default DEVICE_NAME=OIC-DEVICE, if device name option is not specified
127 To change the port number, please modify "port" variable in __upload() function in: "/build/arduino/SConscript".