-
Notifications
You must be signed in to change notification settings - Fork 439
Build for ARTIK053 TizenRT
Hosung Kim edited this page Jul 3, 2017
·
5 revisions
This directory contains files to run IoT.js on TizenRT.
WARNING: This document is not 100% accurate since Artik05x board with tooling is not available yet
Clone IoT.js and TizenRT into iotjs-tizenrt directory
$ mkdir iotjs-tizenrt
$ cd iotjs-tizenrt
$ git clone https://github.com/Samsung/iotjs.git
$ git clone https://github.com/Samsung/TizenRT.git tizenrt
The following directory structure is created after these commands
iotjs-tizenrt
+ iotjs
| + config
| + tizenrt
| + artik05x
+ tizenrt
$ cd tizenrt/apps/system
$ mkdir iotjs
$ cp ../../../iotjs/config/tizenrt/artik05x/app/* ./iotjs/
WARNING: Manual modification is required
WARNING: Below two bullet points are subject to change
- change tizenrt/apps/system/Kconfig to include iotjs folder
menu "IoT.js node.js like Javascript runtime" source "$APPSDIR/system/iotjs/Kconfig" endmenu
- Libraries required to link iotjs have to be supplied in some way
EXTRA_LIBS = -lhttpparser -liotjs -ljerrycore -ltuv -ljerry-libm
$ cd tizenrt/os/tools
$ ./configure.sh sidk_s5jt200/hello_with_tash
$ cd ..
# might require to run "make menuconfig" twice
$ make menuconfig
$ cd iotjs
$ ./tools/build.py --target-arch=arm --target-os=tizenrt --target-board=artik05x --sysroot=../tizenrt/os
$ cd tizenrt/os
IOTJS_LIB_DIR=../iotjs/build/arm-tizenrt/debug/lib make
Binaries are available in tizenrt/build/output/bin
Yet to be announced on TizenRT page