diff --git a/vendor/platform/Simcom-A7670C/Makefile b/vendor/platform/Simcom-A7670C/Makefile new file mode 100644 index 000000000..9f9be211e --- /dev/null +++ b/vendor/platform/Simcom-A7670C/Makefile @@ -0,0 +1,8 @@ +# Source and Objects + + +all: + make -C src all + +clean: + make -C src clean diff --git a/vendor/platform/Simcom-A7670C/external.env b/vendor/platform/Simcom-A7670C/external.env new file mode 100644 index 000000000..db418a310 --- /dev/null +++ b/vendor/platform/Simcom-A7670C/external.env @@ -0,0 +1,35 @@ +# Compiler + +CC := $(CURDIR)/../tools/win32/cross_tool/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe +AR := $(CURDIR)/../tools/win32/cross_tool/gcc-arm-none-eabi/bin/arm-none-eabi-ar.exe + +# Commands +CYGWIN_BASE := C:/cygwin64 +BOAT_RM := $(CYGWIN_BASE)/bin/rm -rf +BOAT_MKDIR := $(CYGWIN_BASE)/bin/mkdir +BOAT_FIND := $(CYGWIN_BASE)/bin/find +BOAT_COPY := $(CYGWIN_BASE)/bin/cp + + +# External include path and libraries + +EXTERNAL_INC := -I$(CURDIR)/../sc_lib/A7670C_LANS_1606_V701/inc \ + -I$(CURDIR)/../sc_lib/inc + +EXTERNAL_CFLAGS := -c -MMD -mlong-calls -march=armv7-r -mcpu=cortex-r4 -mlittle-endian -mthumb -mthumb-interwork -Wformat=0 -Wno-pointer-sign -Wno-parentheses -Wno-incompatible-pointer-types -Wno-unused-variable -mfloat-abi=soft -Wall -ffunction-sections -fdata-sections $(FNO_BUILTIN_FLAGS) -std=c99 -g -Os -DMBTK_CDC_UART_SUPPORT + + +EXTERNAL_LFLAGS := + + +export CC +export AR +export BOAT_RM +export BOAT_MKDIR +export BOAT_FIND +export BOAT_COPY +export LD_LIBRARY_PATH +export EXTERNAL_INC +export EXTERNAL_LIBS +export EXTERNAL_CFLAGS +export EXTERNAL_LFLAGS \ No newline at end of file diff --git a/vendor/platform/Simcom-A7670C/src/Makefile b/vendor/platform/Simcom-A7670C/src/Makefile new file mode 100644 index 000000000..1b54b6540 --- /dev/null +++ b/vendor/platform/Simcom-A7670C/src/Makefile @@ -0,0 +1,28 @@ +# Source and Objects +SRC_OBJECTS = $(wildcard $(BOAT_BUILD_DIR)/vendor/platform/$(PLATFORM_TARGET)/rpc/*.o) + +PORT_CRYPTO_OBJECTS = $(wildcard $(BOAT_BUILD_DIR)/vendor/common/storage/*.o ) \ + $(wildcard $(BOAT_BUILD_DIR)/vendor/keystore/*.o) + +PORT_CRYPTO_OBJECTS += $(wildcard $(BOAT_BUILD_DIR)/vendor/common/crypto/crypto_default/*.o) \ + $(wildcard $(BOAT_BUILD_DIR)/vendor/common/crypto/crypto_default/aes/*.o) \ + $(wildcard $(BOAT_BUILD_DIR)/vendor/platform/$(PLATFORM_TARGET)/port_crypto_default/*.o) + + +LIBNAME = $(BOAT_LIB_DIR)/libboatvendor.a + +.PHONY: all $(CLEAN_SUBDIRS) boatvendor_objs clean + +all: boatvendor_objs $(LIBNAME) + +$(LIBNAME): boatvendor_objs + $(AR) r $(LIBNAME) $(PORT_CRYPTO_OBJECTS) $(SRC_OBJECTS) + + +boatvendor_objs: + make -C port_crypto_default all + make -C rpc all + + +clean: $(CLEAN_SUBDIRS) + -$(BOAT_RM) $(LIBNAME)