Update build guide for TizenRT 1.1
Previous guide is out of date.
Updated guide works with TizenRT 1.1.
JerryScript-DCO-1.0-Signed-off-by: Sanggyu Lee
@@ -4,6 +4,23 @@ This folder contains files to build and run JerryScript on [TizenRT](https://git
### How to build
+#### TL; DR
+
+If you are in a hurry, run following commands:
+
+```
+$ sudo apt-add-repository -y "ppa:team-gcc-arm-embedded/ppa"
+$ sudo apt-get update
+$ sudo apt-get install gcc-arm-embedded
+$ git clone https://github.com/jerryscript-project/jerryscript.git jerryscript
+$ cd jerryscript
+$ make -f ./targets/tizenrt-artik053/Makefile.travis install script
+```
+Next, go to [step 7](#7-generate-romfs)
+
+
+#### Build steps in detail
+
#### 1. Set up build environment
* Install toolchain
@@ -24,7 +41,7 @@ $ export PATH=<Your Toolchain PATH>:$PATH
$ mkdir jerry-tizenrt
$ cd jerry-tizenrt
$ git clone https://github.com/jerryscript-project/jerryscript.git
-$ git clone https://github.com/Samsung/TizenRT.git
+$ git clone https://github.com/Samsung/TizenRT.git -b 1.1_Public_Release
```
The following directory structure is created after these commands
@@ -40,7 +57,7 @@ jerry-tizenrt
```
$ cp -r jerryscript/targets/tizenrt-artik053/apps/jerryscript/ TizenRT/apps/system/
$ cp -r jerryscript/targets/tizenrt-artik053/configs/jerryscript/ TizenRT/build/configs/artik053/
-$ cp jerryscript/targets/tizenrt-artik053/romfs.patch TizenRT/
+$ cp jerryscript/targets/tizenrt-artik053/romfs-1.1.patch TizenRT/
```
#### 3. Configure TizenRT
@@ -54,7 +71,7 @@ $ ./configure.sh artik053/jerryscript
```
$ cd ../../
-$ patch -p0 < romfs.patch
+$ patch -p1 < romfs-1.1.patch
$ cd build/output/
$ mkdir res
# You can add files in res folder
@@ -76,20 +93,27 @@ $ make -f targets/tizenrt-artik053/Makefile.tizenrt
# assuming you are in jerry-tizenrt folder
$ cd TizenRT/os
$ make
-$ genromfs -f ../build/output/bin/rom.img -d ../build/output/res/ -V "NuttXBootVol"
```
Binaries are available in TizenRT/build/output/bin
-#### 7. Flash binary
+#### 7. Generate romfs
+
+```
+$ genromfs -f ../build/output/bin/rom.img -d ../build/output/res/ -V "NuttXBootVol"
+```
+
+#### 8. Flash binary
```
make download ALL
```
+Reboot the device.
+
For more information, see [How to program a binary](https://github.com/Samsung/TizenRT/blob/master/build/configs/artik053/README.md).
-#### 8. Run JerryScript
+#### 9. Run JerryScript
You can use `minicom` for terminal program, or any other you may like, but set
baud rate to `115200`.
