• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright JS Foundation and other contributors, http://js.foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15
16# Default target for running the build test outside the Travis CI environment.
17all:
18	$(MAKE) install
19	$(MAKE) script
20
21
22## Targets for installing build dependencies of the RIOT JerryScript target.
23
24# Install cross-compiler via apt.
25install-apt-get-deps:
26	sudo apt-get install -q -y clang-3.9 gcc-arm-embedded gcc-multilib
27
28# Fetch RIOT OS repository.
29install-clone-riot:
30	git clone git://github.com/RIOT-OS/RIOT.git ../RIOT -b 2019.01
31
32# Perform all the necessary (JerryScript-independent) installation steps.
33install-noapt: install-clone-riot
34install: install-apt-get-deps install-noapt
35
36
37## Targets for building RIOT with JerryScript.
38
39# Build the firmware (RIOT with JerryScript).
40script:
41	$(MAKE) -f ./targets/riot-stm32f4/Makefile.riot
42