diff --git a/targets/nuttx-stm32f4/Makefile b/targets/nuttx-stm32f4/Makefile index 9afc1b6c1..074227995 100644 --- a/targets/nuttx-stm32f4/Makefile +++ b/targets/nuttx-stm32f4/Makefile @@ -25,7 +25,7 @@ APPNAME = jerry ROOT_DIR = ../../.. PRIORITY = $(CONFIG_JERRYSCRIPT_PRIORITY) STACKSIZE = $(CONFIG_JERRYSCRIPT_STACKSIZE) -CFLAGS += -std=c99 -DJERRY_NDEBUG '-DCONFIG_MEM_HEAP_AREA_SIZE=$(CONFIG_JERRYSCRIPT_HEAPSIZE)' +CFLAGS += -std=c99 -DJERRY_NDEBUG -DJERRY_JS_PARSER '-DCONFIG_MEM_HEAP_AREA_SIZE=$(CONFIG_JERRYSCRIPT_HEAPSIZE)' CFLAGS += -I$(ROOT_DIR)/ $(shell find $(ROOT_DIR)/jerryscript/jerry-core -type d | sed -r -e 's/^/-I/g') # Jerryscript diff --git a/targets/nuttx-stm32f4/README.md b/targets/nuttx-stm32f4/README.md index 01f9feac8..8f1032d32 100644 --- a/targets/nuttx-stm32f4/README.md +++ b/targets/nuttx-stm32f4/README.md @@ -59,6 +59,20 @@ We must set the following options: * Enable `Library Routines -> Standard Math library` * Enable `Application Configuration -> Interpreters -> JerryScript` +If you get `kconfig-mconf: not found` error when you run `make menuconfig` you may have to install kconfig-frontends: + +``` +# assume you are in jerry-nuttx folder +sudo apt-get install gperf flex bison libncurses-dev +git clone https://github.com/jameswalmsley/kconfig-frontends.git +cd kconfig-frontends +./bootstrap +./configure --enable-mconf +make +sudo make install +sudo ldconfig +``` + #### 4. Build JerryScript for NuttX ```