Skip to content

Commit 217dfd5

Browse files
committed
Update NuttX target to releases/10.2
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
1 parent 4592143 commit 217dfd5

File tree

6 files changed

+212
-101
lines changed

6 files changed

+212
-101
lines changed

targets/nuttx-stm32f4/Kconfig

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,18 @@
33
# see the file kconfig-language.txt in the NuttX tools repository.
44
#
55

6-
config JERRYSCRIPT
7-
bool "Jerryscript"
6+
config INTERPRETERS_JERRYSCRIPT
7+
bool "Jerryscript JavaScript engine"
88
default n
9-
---help---
10-
Enable Jerryscript ECMAScript 5.1 interpreter
119

12-
if JERRYSCRIPT
10+
if INTERPRETERS_JERRYSCRIPT
1311

14-
config JERRYSCRIPT_PROGNAME
15-
string "Program name"
16-
default "jerry"
17-
depends on BUILD_KERNEL
18-
---help---
19-
This is the name of the program that will be
20-
use when the NSH ELF program is installed.
21-
22-
config JERRYSCRIPT_PRIORITY
23-
int "Jerryscript task priority"
12+
config INTERPRETERS_JERRYSCRIPT_PRIORITY
13+
int "Jerryscript priority"
2414
default 100
2515

26-
config JERRYSCRIPT_STACKSIZE
16+
config INTERPRETERS_JERRYSCRIPT_STACKSIZE
2717
int "Jerryscript stack size"
2818
default 16384
2919

30-
endif # JERRYSCRIPT
20+
endif # INTERPRETERS_JERRYSCRIPT

targets/nuttx-stm32f4/Make.defs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ifeq ($(CONFIG_JERRYSCRIPT),y)
16-
CONFIGURED_APPS += interpreters/jerryscript
15+
ifeq ($(CONFIG_INTERPRETERS_JERRYSCRIPT),y)
16+
CONFIGURED_APPS += $(APPDIR)/interpreters/jerryscript
1717
endif

targets/nuttx-stm32f4/Makefile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
-include $(TOPDIR)/Make.defs
15+
include $(APPDIR)/Make.defs
1616

1717
# Jerryscript built-in application information.
18-
CONFIG_JERRYSCRIPT_PRIORITY ?= SCHED_PRIORITY_DEFAULT
19-
CONFIG_JERRYSCRIPT_PROGNAME ?= jerry$(EXEEXT)
20-
CONFIG_JERRYSCRIPT_STACKSIZE ?= 16384
21-
22-
PROGNAME = $(CONFIG_JERRYSCRIPT_PROGNAME)
23-
PRIORITY = $(CONFIG_JERRYSCRIPT_PRIORITY)
24-
STACKSIZE = $(CONFIG_JERRYSCRIPT_STACKSIZE)
18+
PROGNAME = jerry
19+
PRIORITY = $(CONFIG_INTERPRETERS_JERRYSCRIPT_PRIORITY)
20+
STACKSIZE = $(CONFIG_INTERPRETERS_JERRYSCRIPT_STACKSIZE)
2521

2622
# Path to the JerryScript project. If not specified, it is supposed
2723
# that JerryScript is located next to the nuttx-apps folder.
@@ -35,7 +31,6 @@ CFLAGS += -I$(JERRYSCRIPT_ROOT_DIR)/jerry-math/include
3531
# These libs should be copied from the JerryScript project.
3632
LIBS = libjerry-core.a libjerry-ext.a libjerry-math.a
3733

38-
APPNAME = jerry
3934
ASRCS = setjmp.S
4035
CSRCS = jerry_port.c jerry_module.c
4136
MAINSRC = jerry_main.c
@@ -57,6 +52,6 @@ cleanlibs: updateobjs
5752

5853
clean:: cleanlibs
5954

60-
.built: $(LIBS) updateobjs
55+
archive: $(LIBS) updateobjs
6156

6257
include $(APPDIR)/Application.mk

targets/nuttx-stm32f4/Makefile.travis

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ install-kconfig:
3939

4040
# Fetch nuttx/{apps,nuttx} repositories.
4141
install-clone-nuttx:
42-
git clone https://github.com/apache/incubator-nuttx-apps.git ../apps -b releases/9.0
43-
git clone https://github.com/apache/incubator-nuttx.git ../nuttx -b releases/9.0
42+
git clone https://github.com/apache/incubator-nuttx-apps.git ../apps -b releases/10.2
43+
git clone https://github.com/apache/incubator-nuttx.git ../nuttx -b releases/10.2
4444

4545
# Perform all the necessary (JerryScript-independent) installation steps.
4646
install-noapt: install-kconfig install-clone-nuttx
@@ -59,12 +59,11 @@ script-add-jerryscript-app:
5959

6060
# Configure USB shell.
6161
script-configure-usbnsh:
62-
cd ../nuttx/tools && PATH=$(LOCAL_INSTALL)/bin:$$PATH ./configure.sh stm32f4discovery/usbnsh
62+
cd ../nuttx/tools && PATH=$(LOCAL_INSTALL)/bin:$$PATH ./configure.sh stm32f4discovery:usbnsh
6363

6464
# Configure and build the firmware (NuttX with JerryScript).
6565
script: script-build-jerryscript script-add-jerryscript-app script-configure-usbnsh
66-
echo 'CONFIG_HOST_LINUX=y' >> ../nuttx/.config
6766
echo 'CONFIG_ARCH_FPU=y' >> ../nuttx/.config
68-
echo 'CONFIG_JERRYSCRIPT=y'>> ../nuttx/.config
67+
echo 'CONFIG_INTERPRETERS_JERRYSCRIPT=y'>> ../nuttx/.config
6968
PATH=$(LOCAL_INSTALL)/bin:$$PATH $(MAKE) -C ../nuttx olddefconfig
7069
PATH=$(LOCAL_INSTALL)/bin:$$PATH $(MAKE) -C ../nuttx

0 commit comments

Comments
 (0)