1
- ### Setting Up Prerequisites
1
+ ## Setting up prerequisites
2
2
3
3
Currently, only Ubuntu 14.04+ is officially supported as primary development environment.
4
4
@@ -19,38 +19,41 @@ sudo apt-get install gcc g++ gcc-arm-none-eabi cmake cppcheck vera++ python
19
19
20
20
To make our scripts run correctly, several shell utilities should be available on the system:
21
21
22
- - ` find `
23
22
- ` awk `
23
+ - ` bc `
24
+ - ` find `
25
+ - ` sed `
24
26
25
- ### Building Jerryscript
27
+ ## Building JerryScript
26
28
27
- ##### To build debug version for Linux:
29
+ ** To build debug version for Linux**
28
30
29
31
``` bash
30
32
python tools/build.py --debug
31
33
```
32
34
33
- ##### To build debug version for Linux without LTO (Link Time Optimization):
35
+ ** To build debug version for Linux without LTO (Link Time Optimization)**
34
36
35
37
``` bash
36
38
python tools/build.py --debug --lto=off
37
39
```
38
40
39
- ##### Add custom arguments to CMake:
41
+ ** Add custom arguments to CMake**
40
42
41
43
``` bash
42
44
python tools/build.py --cmake-param=CMAKE_PARAM
43
45
```
44
46
45
- ##### Set a profile mode (full| minimal):
47
+ ** Set a profile mode (full, minimal)**
46
48
47
49
``` bash
48
50
python tools/build.py --feature=full| minimal
49
51
```
50
52
51
- ##### Use (jerry| compiler-default|external libc ) libc:
53
+ ** Use (jerry, compiler-default, external ) libc**
52
54
53
55
The default libc is jerry-libc, but you can use compiler-default libc or an external libc:
56
+
54
57
- compiler-default libc:
55
58
56
59
``` bash
@@ -63,7 +66,7 @@ python tools/build.py --jerry-libc=off --compiler-default-libc=on
63
66
python tools/build.py --jerry-libc=off --compiler-default-libc=off --compile-flag=" -I/path/to/libc/include"
64
67
```
65
68
66
- ##### Add toolchain file:
69
+ ** Add toolchain file**
67
70
68
71
The ``` cmake ``` dir already contains some usable toolchain files, which you can use in the following format:
69
72
@@ -77,72 +80,64 @@ For example the cross-compile to RaspberryPi 2 is something like this:
77
80
python tools/build.py --toolchain=cmake/toolchain_linux_armv7l.cmake
78
81
```
79
82
80
- ##### To get a list of all the available buildoptions for Linux:
83
+ ** To get a list of all the available buildoptions for Linux**
81
84
82
85
``` bash
83
86
python tools/build.py --help
84
87
```
85
88
86
- ### Checking patch
89
+ ## Checking patch
87
90
88
91
``` bash
89
92
python tools/run-tests.py --precommit
90
93
```
91
94
95
+ ### Running only one type of test
92
96
93
- #### Running only one type of test:
94
-
95
- ##### To run build option tests:
97
+ ** To run build option tests**
96
98
97
99
``` bash
98
100
python tools/run-tests.py --buildoption-test
99
101
```
100
102
101
- ##### To run unittests:
103
+ ** To run unittests**
102
104
103
105
``` bash
104
106
python tools/run-tests.py --unittests
105
107
```
106
108
107
- ##### To run jerry-tests:
109
+ ** To run jerry-tests**
108
110
109
111
``` bash
110
112
python tools/run-tests.py --jerry-tests
111
113
```
112
114
113
- ##### To run jerry-test-suite:
115
+ ** To run jerry-test-suite**
114
116
115
117
``` bash
116
118
python tools/run-tests.py --jerry-test-suite
117
119
```
118
120
119
- ##### To run signed-off check:
121
+ ** To run signed-off check**
120
122
121
123
``` bash
122
124
python tools/run-tests.py --check-signed-off
123
125
```
124
126
125
- ##### To run cppcheck:
127
+ ** To run cppcheck**
126
128
127
129
``` bash
128
130
python tools/run-tests.py --check-cppcheck
129
131
```
130
132
131
- ##### To run vera check:
133
+ ** To run vera check**
132
134
133
135
``` bash
134
136
python tools/run-tests.py --check-vera
135
137
```
136
138
137
- ##### Use toolchain file:
138
-
139
- The cmake dir already contains some usable toolchain files, which you can use in the following format:
140
-
141
- python tools/run-tests.py --toolchain=TOOLCHAIN
142
-
143
- ##### To get a list of all the available test options:
139
+ ** To get a list of all the available test options**
144
140
145
141
``` bash
146
142
python tools/run-tests.py --help
147
143
```
148
-
0 commit comments