1 ## Build IoT.js for ARTIK
3 ### Tizen on ARTIK10 cross-compile
7 * ARTIK10 with Tizen (https://wiki.tizen.org/wiki/Tizen_On_ARTIK)
8 * Tizen Studio with Native app development CLI tools
10 This is required to get rootstrap for Tizen (set of native libraries).
11 * arm-linux-gnueabi-gcc cross compiler (can be found in Tizen Studio / Native toolchain)
14 1. Make sure arm-linux-gnueabi-gcc is in path
15 2. Locate Tizen SDK. Default location is: ~/tizen-studio
16 3. In platforms/tizen-3.0/mobile there should be compatible rootstrap (eg. mobile-3.0-device)
21 --target-arch=arm --target-os=tizen --target-board=artik10 \
22 --compile-flag="--sysroot=~/tizen-studio/platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/"
26 Transfer iotjs binary and test file to the device:
28 sdb push ./build/arm-tizen/debug/bin/iotjs /home/owner/iotjs/
29 sdb push ./test/run_pass/test_console.js /home/owner/iotjs/
35 $ cd /home/owner/iotjs
36 $ ./iotjs test_console.js