mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
pkg/jerryscript: bump to 2.4.0
This commit is contained in:
parent
bcc32cdde1
commit
9a289d40fa
@ -1,10 +1,11 @@
|
|||||||
PKG_NAME=jerryscript
|
PKG_NAME=jerryscript
|
||||||
PKG_URL=https://github.com/jerryscript-project/jerryscript.git
|
PKG_URL=https://github.com/jerryscript-project/jerryscript.git
|
||||||
PKG_VERSION=23bba1c6d9048e9b37cceff05ec6501646e48791 # 2.3.0
|
PKG_VERSION=8ba0d1b6ee5a065a42f3b306771ad8e3c0d819bc # 2.4.0
|
||||||
PKG_LICENSE=Apache-2.0
|
PKG_LICENSE=Apache-2.0
|
||||||
|
|
||||||
include $(RIOTBASE)/pkg/pkg.mk
|
include $(RIOTBASE)/pkg/pkg.mk
|
||||||
|
|
||||||
|
JERRY_PROFILE ?= minimal # Other possible values are es.next, es5.1 and es2015-subset
|
||||||
JERRY_HEAP ?= 16 # kB
|
JERRY_HEAP ?= 16 # kB
|
||||||
JERRY_STACK ?= 1 # kB
|
JERRY_STACK ?= 1 # kB
|
||||||
JERRY_GC_LIMIT ?= 0 # Use default value, e.g. 1/32 of total heap size
|
JERRY_GC_LIMIT ?= 0 # Use default value, e.g. 1/32 of total heap size
|
||||||
@ -37,10 +38,10 @@ endif
|
|||||||
all: $(BINDIR)/jerryscript.a
|
all: $(BINDIR)/jerryscript.a
|
||||||
|
|
||||||
$(BINDIR)/jerryscript.a: $(PKG_BUILD_DIR)/Makefile
|
$(BINDIR)/jerryscript.a: $(PKG_BUILD_DIR)/Makefile
|
||||||
"$(MAKE)" -C $(PKG_BUILD_DIR) jerry-core jerry-ext jerry-port-default-minimal
|
"$(MAKE)" -C $(PKG_BUILD_DIR) jerry-core jerry-ext jerry-port-default
|
||||||
@cp $(PKG_BUILD_DIR)/lib/libjerry-core.a $(BINDIR)/jerryscript.a
|
@cp $(PKG_BUILD_DIR)/lib/libjerry-core.a $(BINDIR)/jerryscript.a
|
||||||
@cp $(PKG_BUILD_DIR)/lib/libjerry-ext.a $(BINDIR)/jerryscript-ext.a
|
@cp $(PKG_BUILD_DIR)/lib/libjerry-ext.a $(BINDIR)/jerryscript-ext.a
|
||||||
@cp $(PKG_BUILD_DIR)/lib/libjerry-port-default-minimal.a $(BINDIR)/jerryport-minimal.a
|
@cp $(PKG_BUILD_DIR)/lib/libjerry-port-default.a $(BINDIR)/jerryscript-port-default.a
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/Makefile:
|
$(PKG_BUILD_DIR)/Makefile:
|
||||||
cmake -B$(PKG_BUILD_DIR) -H$(PKG_SOURCE_DIR) \
|
cmake -B$(PKG_BUILD_DIR) -H$(PKG_SOURCE_DIR) \
|
||||||
@ -49,10 +50,11 @@ $(PKG_BUILD_DIR)/Makefile:
|
|||||||
-DCMAKE_C_COMPILER=$(CC) \
|
-DCMAKE_C_COMPILER=$(CC) \
|
||||||
-DCMAKE_C_COMPILER_WORKS=TRUE \
|
-DCMAKE_C_COMPILER_WORKS=TRUE \
|
||||||
-DENABLE_LTO=OFF \
|
-DENABLE_LTO=OFF \
|
||||||
-DENABLE_ALL_IN_ONE=OFF \
|
-DENABLE_AMALGAM=OFF \
|
||||||
-DHAVE_TIME_H=0 \
|
-DHAVE_TIME_H=0 \
|
||||||
-DEXTERNAL_COMPILE_FLAGS="$(INCLUDES) $(EXT_CFLAGS)" \
|
-DEXTERNAL_COMPILE_FLAGS="$(INCLUDES) $(EXT_CFLAGS)" \
|
||||||
-DJERRY_LIBM=OFF \
|
-DJERRY_MATH=OFF \
|
||||||
|
-DJERRY_PROFILE=$(JERRY_PROFILE) \
|
||||||
-DJERRY_CMDLINE=OFF \
|
-DJERRY_CMDLINE=OFF \
|
||||||
-DJERRY_VALGRIND=OFF \
|
-DJERRY_VALGRIND=OFF \
|
||||||
-DJERRY_GC_LIMIT=$(JERRY_GC_LIMIT) \
|
-DJERRY_GC_LIMIT=$(JERRY_GC_LIMIT) \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
USEMODULE += jerryport-minimal
|
USEMODULE += jerryscript-port-default
|
||||||
USEMODULE += jerryscript-ext
|
USEMODULE += jerryscript-ext
|
||||||
|
|
||||||
# Jerryscript is only supported by 32-bit architectures
|
# Jerryscript is only supported by 32-bit architectures
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
INCLUDES += -I$(PKGDIRBASE)/jerryscript/jerry-core/include
|
INCLUDES += -I$(PKGDIRBASE)/jerryscript/jerry-core/include
|
||||||
INCLUDES += -I$(PKGDIRBASE)/jerryscript/jerry-ext/include
|
INCLUDES += -I$(PKGDIRBASE)/jerryscript/jerry-ext/include
|
||||||
|
|
||||||
ARCHIVES += $(BINDIR)/jerryscript.a $(BINDIR)/jerryscript-ext.a
|
ARCHIVES += $(BINDIR)/jerryscript.a
|
||||||
ARCHIVES += $(BINDIR)/jerryport-minimal.a
|
ARCHIVES += $(BINDIR)/jerryscript-ext.a
|
||||||
|
ARCHIVES += $(BINDIR)/jerryscript-port-default.a
|
||||||
|
|
||||||
# Ensure MCPU is correctly exported to CMake variables when configuring the
|
# Ensure MCPU is correctly exported to CMake variables when configuring the
|
||||||
# Jerrycript build
|
# Jerrycript build
|
||||||
|
Loading…
Reference in New Issue
Block a user