-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add platone to Simcom-A7670C #1377 BoATE-872
- Loading branch information
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |