3 This directory contains files to run IoT.js on [TizenRT](https://github.com/Samsung/TizenRT).
5 WARNING: **This document is not 100% accurate since Artik05x board with tooling is not available yet**
9 #### 1. Set up the build environment for Artik05x board
11 Clone IoT.js and TizenRT into iotjs-tizenrt directory
16 $ git clone https://github.com/Samsung/iotjs.git
17 $ git clone https://github.com/Samsung/TizenRT.git tizenrt
19 The following directory structure is created after these commands
29 #### 2. Add IoT.js as a builtin application for TizenRT
32 $ cd tizenrt/apps/system
34 $ cp ../../../iotjs/targets/tizenrt-artik05x/app/* ./iotjs/
37 **WARNING: Manual modification is required**
39 **WARNING: Below two bullet points are subject to change**
41 * change tizenrt/apps/system/Kconfig to include iotjs folder
43 menu "IoT.js node.js like Javascript runtime"
44 source "$APPSDIR/system/iotjs/Kconfig"
47 * Libraries required to link iotjs have to be supplied in some way
49 EXTRA_LIBS = -lhttpparser -liotjs -ljerrycore -ltuv -ljerry-libm
53 #### 3. Configure TizenRT
57 $ ./configure.sh sidk_s5jt200/hello_with_tash
60 # might require to run "make menuconfig" twice
64 #### 4. Build IoT.js for TizenRT
68 $ ./tools/build.py --target-arch=arm --target-os=tizenrt --target-board=artik05x --sysroot=../tizenrt/os
76 IOTJS_LIB_DIR=../iotjs/build/arm-tizenrt/debug/lib make
78 Binaries are available in `tizenrt/build/output/bin`
82 Yet to be announced on [TizenRT page](https://github.com/Samsung/TizenRT#board)