From f3436840dda8fb59cb419f0ed3230072c313ab70 Mon Sep 17 00:00:00 2001 From: Robert Sipka Date: Tue, 13 Dec 2016 15:12:55 +0100 Subject: [PATCH] Build fix for STM32F4-Discovery board with NuttX. (#1489) JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com --- targets/nuttx-stm32f4/Makefile | 2 +- targets/nuttx-stm32f4/README.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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 ```