Update riot-stm32f4 target to use jerry-port-default-minimal (#1790)

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
Robert Sipka 2017-04-28 10:49:39 +02:00 committed by GitHub
parent 56802c22a1
commit 0e38356e5b
3 changed files with 9 additions and 4 deletions

View File

@ -43,7 +43,8 @@ INCLUDES += -I$(JERRYDIR)/jerry-core/
USEMODULE += shell
USEMODULE += shell_commands
# Add the jerry lib
USEMODULE += libjerrycore
# Add the jerry libs
USEMODULE += libjerrycore libjerryport-minimal
include $(RIOTBASE)/Makefile.include

View File

@ -32,6 +32,7 @@ libjerry:
-DENABLE_LTO=OFF \
-DFEATURE_VALGRIND=OFF \
-DCMAKE_TOOLCHAIN_FILE=cmake/toolchain_external.cmake \
-DJERRY_LIBM=OFF \
-DJERRY_LIBC=OFF \
-DJERRY_CMDLINE=OFF \
-DENABLE_ALL_IN_ONE=OFF \
@ -41,8 +42,10 @@ libjerry:
-DEXTERNAL_COMPILE_FLAGS="$(EXT_CFLAGS)" \
-DMEM_HEAP_SIZE_KB=$(JERRYHEAP)
make -C$(BUILD_DIR) jerry-core
make -C$(BUILD_DIR) jerry-core jerry-port-default-minimal
cp $(BUILD_DIR)/lib/libjerry-core.a $(COPYTARGET)/libjerrycore.a
cp $(BUILD_DIR)/lib/libjerry-port-default-minimal.a $(COPYTARGET)/libjerryport-minimal.a
riot-jerry: libjerry
make -f ./targets/riot-stm32f4/Makefile
@ -51,6 +54,6 @@ flash: libjerry
make -f ./targets/riot-stm32f4/Makefile flash
clean:
rm -rf $(OUTPUT)
rm -rf $(COPYTARGET)
rm -rf $(BUILD_DIR)
make -f ./targets/riot-stm32f4/Makefile clean

View File

@ -13,6 +13,7 @@
* limitations under the License.
*/
#include <stdio.h>
#include <string.h>
#include "shell.h"
#include "jerryscript.h"