Drop the minimal variant of the default port implementation (#4331)
The minimal variant became quite meaningless lately. There were two port APIs originally that had extra functions in the default port in addition to the core-mandated implementations: the I/O and Termination port APIs. However, the extra Termination API code was removed a year ago, leaving some minimal extension in the I/O port only. As the overhead of the extension is negligible, it is not worth maintaining two library variants. Therefore - this commit removes the minimal variant of the default port lib, - rewrites uses of the minimal variant to use the variant with the I/O extension, and - updates targets where I/O port code was copy-n-pasted. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -42,7 +42,7 @@ USEMODULE += shell
|
||||
USEMODULE += shell_commands
|
||||
|
||||
# Add the jerry libs
|
||||
USEMODULE += libjerry-core libjerry-port-default-minimal libjerry-ext
|
||||
USEMODULE += libjerry-core libjerry-port-default libjerry-ext
|
||||
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
||||
@@ -52,11 +52,11 @@ libjerry:
|
||||
-DJERRY_PROFILE="es5.1" \
|
||||
-DEXTERNAL_COMPILE_FLAGS="$(EXT_CFLAGS)" \
|
||||
-DJERRY_GLOBAL_HEAP_SIZE=$(JERRYHEAP)
|
||||
make -C$(BUILD_DIR) jerry-core jerry-port-default-minimal jerry-ext
|
||||
make -C$(BUILD_DIR) jerry-core jerry-port-default jerry-ext
|
||||
|
||||
mkdir -p $(COPYTARGET)
|
||||
cp $(BUILD_DIR)/lib/libjerry-core.a $(COPYTARGET)
|
||||
cp $(BUILD_DIR)/lib/libjerry-port-default-minimal.a $(COPYTARGET)
|
||||
cp $(BUILD_DIR)/lib/libjerry-port-default.a $(COPYTARGET)
|
||||
cp $(BUILD_DIR)/lib/libjerry-ext.a $(COPYTARGET)
|
||||
|
||||
riot-jerry: libjerry
|
||||
|
||||
Reference in New Issue
Block a user