Skip to content

Commit

Permalink
feat(Simcom-A7670C):
Browse files Browse the repository at this point in the history
Add platone to Simcom-A7670C #1377
BoATE-872
  • Loading branch information
zt222 committed Feb 21, 2023
1 parent a4b22c3 commit 0e5313c
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vendor/platform/Simcom-A7670C/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Source and Objects


all:
make -C src all

clean:
make -C src clean
35 changes: 35 additions & 0 deletions vendor/platform/Simcom-A7670C/external.env
Original file line number Diff line number Diff line change
@@ -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
28 changes: 28 additions & 0 deletions vendor/platform/Simcom-A7670C/src/Makefile
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 0e5313c

Please sign in to comment.