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:
@@ -43,7 +43,8 @@ INCLUDES += -I$(JERRYDIR)/jerry-core/
|
|||||||
USEMODULE += shell
|
USEMODULE += shell
|
||||||
USEMODULE += shell_commands
|
USEMODULE += shell_commands
|
||||||
|
|
||||||
# Add the jerry lib
|
# Add the jerry libs
|
||||||
USEMODULE += libjerrycore
|
USEMODULE += libjerrycore libjerryport-minimal
|
||||||
|
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ libjerry:
|
|||||||
-DENABLE_LTO=OFF \
|
-DENABLE_LTO=OFF \
|
||||||
-DFEATURE_VALGRIND=OFF \
|
-DFEATURE_VALGRIND=OFF \
|
||||||
-DCMAKE_TOOLCHAIN_FILE=cmake/toolchain_external.cmake \
|
-DCMAKE_TOOLCHAIN_FILE=cmake/toolchain_external.cmake \
|
||||||
|
-DJERRY_LIBM=OFF \
|
||||||
-DJERRY_LIBC=OFF \
|
-DJERRY_LIBC=OFF \
|
||||||
-DJERRY_CMDLINE=OFF \
|
-DJERRY_CMDLINE=OFF \
|
||||||
-DENABLE_ALL_IN_ONE=OFF \
|
-DENABLE_ALL_IN_ONE=OFF \
|
||||||
@@ -41,8 +42,10 @@ libjerry:
|
|||||||
-DEXTERNAL_COMPILE_FLAGS="$(EXT_CFLAGS)" \
|
-DEXTERNAL_COMPILE_FLAGS="$(EXT_CFLAGS)" \
|
||||||
-DMEM_HEAP_SIZE_KB=$(JERRYHEAP)
|
-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-core.a $(COPYTARGET)/libjerrycore.a
|
||||||
|
cp $(BUILD_DIR)/lib/libjerry-port-default-minimal.a $(COPYTARGET)/libjerryport-minimal.a
|
||||||
|
|
||||||
|
|
||||||
riot-jerry: libjerry
|
riot-jerry: libjerry
|
||||||
make -f ./targets/riot-stm32f4/Makefile
|
make -f ./targets/riot-stm32f4/Makefile
|
||||||
@@ -51,6 +54,6 @@ flash: libjerry
|
|||||||
make -f ./targets/riot-stm32f4/Makefile flash
|
make -f ./targets/riot-stm32f4/Makefile flash
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(OUTPUT)
|
|
||||||
rm -rf $(COPYTARGET)
|
rm -rf $(COPYTARGET)
|
||||||
|
rm -rf $(BUILD_DIR)
|
||||||
make -f ./targets/riot-stm32f4/Makefile clean
|
make -f ./targets/riot-stm32f4/Makefile clean
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "shell.h"
|
#include "shell.h"
|
||||||
#include "jerryscript.h"
|
#include "jerryscript.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user