Currently, only Ubuntu 14.04+ is officially supported as primary development environment.
There are several dependencies, that should be installed manually. The following list is required for building:
gcc
or any C99-compliant compiler- native
- arm-none-eabi
cmake
>=2.8.12.2
bash
>=4.3.11
cppcheck
>=1.61
vera++
>=1.2.1
python
>=2.7.6
sudo apt-get install gcc g++ gcc-arm-none-eabi cmake cppcheck vera++ python
To make our scripts run correctly, several shell utilities should be available on the system:
find
awk
python tools/build.py --debug
python tools/build.py --debug --lto=off
python tools/build.py --cmake-param=CMAKE_PARAM
python tools/build.py --feature=full|minimal
The default libc is jerry-libc, but you can use compiler-default libc or an external libc:
- compiler-default libc:
python tools/build.py --jerry-libc=off --compiler-default-libc=on
- external libc:
python tools/build.py --jerry-libc=off --compiler-default-libc=off --compile-flag="-I/path/to/libc/include"
The cmake
dir already contains some usable toolchain files, which you can use in the following format:
python tools/build.py --toolchain=TOOLCHAIN
For example the cross-compile to RaspberryPi 2 is something like this:
python tools/build.py --toolchain=cmake/toolchain_linux_armv7l.cmake
python tools/build.py --help
python tools/run-tests.py --precommit
python tools/run-tests.py --buildoption-test
python tools/run-tests.py --unittests
python tools/run-tests.py --jerry-tests
python tools/run-tests.py --jerry-test-suite
python tools/run-tests.py --check-signed-off
python tools/run-tests.py --check-cppcheck
python tools/run-tests.py --check-vera
The cmake dir already contains some usable toolchain files, which you can use in the following format:
python tools/run-tests.py --toolchain=TOOLCHAIN
python tools/run-tests.py --help