File tree Expand file tree Collapse file tree 6 files changed +212
-101
lines changed Expand file tree Collapse file tree 6 files changed +212
-101
lines changed Original file line number Diff line number Diff line change 3
3
# see the file kconfig-language.txt in the NuttX tools repository.
4
4
#
5
5
6
- config JERRYSCRIPT
7
- bool "Jerryscript"
6
+ config INTERPRETERS_JERRYSCRIPT
7
+ bool "Jerryscript JavaScript engine "
8
8
default n
9
- ---help---
10
- Enable Jerryscript ECMAScript 5.1 interpreter
11
9
12
- if JERRYSCRIPT
10
+ if INTERPRETERS_JERRYSCRIPT
13
11
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"
24
14
default 100
25
15
26
- config JERRYSCRIPT_STACKSIZE
16
+ config INTERPRETERS_JERRYSCRIPT_STACKSIZE
27
17
int "Jerryscript stack size"
28
18
default 16384
29
19
30
- endif # JERRYSCRIPT
20
+ endif # INTERPRETERS_JERRYSCRIPT
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- ifeq ($(CONFIG_JERRYSCRIPT ),y)
16
- CONFIGURED_APPS += interpreters/jerryscript
15
+ ifeq ($(CONFIG_INTERPRETERS_JERRYSCRIPT ),y)
16
+ CONFIGURED_APPS += $(APPDIR)/ interpreters/jerryscript
17
17
endif
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- - include $(TOPDIR ) /Make.defs
15
+ include $(APPDIR ) /Make.defs
16
16
17
17
# 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 )
25
21
26
22
# Path to the JerryScript project. If not specified, it is supposed
27
23
# that JerryScript is located next to the nuttx-apps folder.
@@ -35,7 +31,6 @@ CFLAGS += -I$(JERRYSCRIPT_ROOT_DIR)/jerry-math/include
35
31
# These libs should be copied from the JerryScript project.
36
32
LIBS = libjerry-core.a libjerry-ext.a libjerry-math.a
37
33
38
- APPNAME = jerry
39
34
ASRCS = setjmp.S
40
35
CSRCS = jerry_port.c jerry_module.c
41
36
MAINSRC = jerry_main.c
@@ -57,6 +52,6 @@ cleanlibs: updateobjs
57
52
58
53
clean :: cleanlibs
59
54
60
- .built : $(LIBS ) updateobjs
55
+ archive : $(LIBS ) updateobjs
61
56
62
57
include $(APPDIR ) /Application.mk
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ install-kconfig:
39
39
40
40
# Fetch nuttx/{apps,nuttx} repositories.
41
41
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
44
44
45
45
# Perform all the necessary (JerryScript-independent) installation steps.
46
46
install-noapt: install-kconfig install-clone-nuttx
@@ -59,12 +59,11 @@ script-add-jerryscript-app:
59
59
60
60
# Configure USB shell.
61
61
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
63
63
64
64
# Configure and build the firmware (NuttX with JerryScript).
65
65
script: script-build-jerryscript script-add-jerryscript-app script-configure-usbnsh
66
- echo 'CONFIG_HOST_LINUX=y' >> ../nuttx/.config
67
66
echo 'CONFIG_ARCH_FPU=y' >> ../nuttx/.config
68
- echo 'CONFIG_JERRYSCRIPT =y'>> ../nuttx/.config
67
+ echo 'CONFIG_INTERPRETERS_JERRYSCRIPT =y'>> ../nuttx/.config
69
68
PATH=$(LOCAL_INSTALL)/bin:$$PATH $(MAKE) -C ../nuttx olddefconfig
70
69
PATH=$(LOCAL_INSTALL)/bin:$$PATH $(MAKE) -C ../nuttx
You can’t perform that action at this time.
0 commit comments