Build fix for STM32F4-Discovery board with NuttX. (#1489)
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
@@ -25,7 +25,7 @@ APPNAME = jerry
|
|||||||
ROOT_DIR = ../../..
|
ROOT_DIR = ../../..
|
||||||
PRIORITY = $(CONFIG_JERRYSCRIPT_PRIORITY)
|
PRIORITY = $(CONFIG_JERRYSCRIPT_PRIORITY)
|
||||||
STACKSIZE = $(CONFIG_JERRYSCRIPT_STACKSIZE)
|
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')
|
CFLAGS += -I$(ROOT_DIR)/ $(shell find $(ROOT_DIR)/jerryscript/jerry-core -type d | sed -r -e 's/^/-I/g')
|
||||||
|
|
||||||
# Jerryscript
|
# Jerryscript
|
||||||
|
|||||||
@@ -59,6 +59,20 @@ We must set the following options:
|
|||||||
* Enable `Library Routines -> Standard Math library`
|
* Enable `Library Routines -> Standard Math library`
|
||||||
* Enable `Application Configuration -> Interpreters -> JerryScript`
|
* 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
|
#### 4. Build JerryScript for NuttX
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user