Add NuttX specific port implementation. (#2864)
The NuttX target has been problematic for some time, due to the fact that NuttX apps are built with NuttX's own libc implementation, while the default-port in JerryScript was compiled with the host libc, which caused a mismatch between the two. In order to work around this issue, most of the port implementation is already duplicated in the NuttX target's jerry_main.c. This PR adds a NuttX specific port implementation by moving the already implemented port functions from jerry_main into a separate file, adding implementation for the missing functions, and disabling the default-port in JerryScript. Co-authored-by: Marko Fabo <mfabo@inf.u-szeged.hu> JerryScript-DCO-1.0-Signed-off-by: Marko Fabo mfabo@inf.u-szeged.hu JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
@@ -33,10 +33,11 @@ CFLAGS += -I$(JERRYSCRIPT_ROOT_DIR)/jerry-ext/include
|
||||
CFLAGS += -I$(JERRYSCRIPT_ROOT_DIR)/jerry-libm/include
|
||||
|
||||
# These libs should be copied from the JerryScript project.
|
||||
LIBS = libjerry-core.a libjerry-ext.a libjerry-port-default.a libjerry-port-default-minimal.a libjerry-libm.a
|
||||
LIBS = libjerry-core.a libjerry-ext.a libjerry-libm.a
|
||||
|
||||
APPNAME = jerry
|
||||
ASRCS = setjmp.S
|
||||
CSRCS = jerry_port.c
|
||||
MAINSRC = jerry_main.c
|
||||
|
||||
.PHONY: copylibs
|
||||
|
||||
Reference in New Issue
Block a user