From 010826e8554c4d1bdeed9dc8fa974b91298b2c98 Mon Sep 17 00:00:00 2001 From: Jose Alamos <jose.alamos@haw-hamburg.de> Date: Wed, 25 Apr 2018 17:13:46 +0200 Subject: [PATCH] make/javascript: add RIOTBASE support --- examples/javascript/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/javascript/Makefile b/examples/javascript/Makefile index 4d4b302b00..bda8e2ff55 100644 --- a/examples/javascript/Makefile +++ b/examples/javascript/Makefile @@ -4,6 +4,9 @@ APPLICATION = riot_javascript # default BOARD environment BOARD ?= native +# This has to be the absolute path to the RIOT base directory: +RIOTBASE ?= $(CURDIR)/../.. + BOARD_INSUFFICIENT_MEMORY := airfy-beacon b-l072z-lrwan1 bluepill calliope-mini \ cc2650-launchpad cc2650stk maple-mini \ microbit nrf51dongle nrf6310 nucleo-f030 nucleo-f070 \ @@ -30,7 +33,7 @@ endif # Add the package for Jerryscript USEPKG += jerryscript -include $(CURDIR)/../../Makefile.include +include $(RIOTBASE)/Makefile.include JS_PATH := $(BINDIR)/js/$(MODULE) # add directory of generated *.js.h files to include path -- GitLab