mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2026-07-14 05:55:38 +00:00
rel_1.6.0 init
This commit is contained in:
commit
27b3e2883d
19359 changed files with 8093121 additions and 0 deletions
57
Living_SDK/security/id2/id2.mk
Normal file
57
Living_SDK/security/id2/id2.mk
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
NAME := id2
|
||||
|
||||
$(NAME)_CFLAGS := -DPLATFORM_ALIOS
|
||||
|
||||
################################################################################
|
||||
#diffrent config for KM, TEE, SE
|
||||
|
||||
LINUXHOST_ID2_CFLAGS = -DID2_OTP_SUPPORTED=1 -DID2_CRYPTO_TYPE_CONFIG=ID2_CRYPTO_TYPE_AES -DID2_OTP_LOCAL_TEST=1 -DID2_DEBUG=1
|
||||
KM_ID2_CFLAGS = -DID2_OTP_SUPPORTED=1 -DID2_CRYPTO_TYPE_CONFIG=ID2_CRYPTO_TYPE_AES
|
||||
TEE_ID2_CFLAGS = -DID2_OTP_SUPPORTED=0 -DID2_CRYPTO_TYPE_CONFIG=ID2_CRYPTO_TYPE_AES
|
||||
SE_ID2_CFLAGS = -DID2_OTP_SUPPORTED=0 -DID2_CRYPTO_TYPE_CONFIG=ID2_CRYPTO_TYPE_3DES
|
||||
|
||||
ifeq ($(findstring linuxhost, $(BUILD_STRING)), linuxhost)
|
||||
$(NAME)_CFLAGS += $(LINUXHOST_ID2_CFLAGS)
|
||||
else ifeq ($(findstring mk3060, $(BUILD_STRING)), mk3060)
|
||||
$(NAME)_CFLAGS += $(KM_ID2_CFLAGS)
|
||||
else ifeq ($(findstring mk3080, $(BUILD_STRING)), mk3080)
|
||||
$(NAME)_CFLAGS += $(KM_ID2_CFLAGS)
|
||||
else ifeq ($(findstring mk5080, $(BUILD_STRING)), mk5080)
|
||||
$(NAME)_CFLAGS += $(KM_ID2_CFLAGS)
|
||||
else ifeq ($(findstring cb2201, $(BUILD_STRING)), cb2201)
|
||||
$(NAME)_CFLAGS += $(TEE_ID2_CFLAGS)
|
||||
else ifeq ($(findstring uno-91h, $(BUILD_STRING)), uno-91h)
|
||||
$(NAME)_CFLAGS += $(KM_ID2_CFLAGS)
|
||||
else ifeq ($(findstring hf-lpt230, $(BUILD_STRING)), hf-lpt230)
|
||||
$(NAME)_CFLAGS += $(KM_ID2_CFLAGS)
|
||||
else ifeq ($(findstring hf-lpb135, $(BUILD_STRING)), hf-lpb135)
|
||||
$(NAME)_CFLAGS += $(KM_ID2_CFLAGS)
|
||||
else ifeq ($(findstring hf-lpt130, $(BUILD_STRING)), hf-lpt130)
|
||||
$(NAME)_CFLAGS += $(KM_ID2_CFLAGS)
|
||||
else ifeq ($(findstring hf-lpb130, $(BUILD_STRING)), hf-lpb130)
|
||||
$(NAME)_CFLAGS += $(KM_ID2_CFLAGS)
|
||||
else ifeq ($(findstring amebaz, $(BUILD_STRING)), amebaz)
|
||||
$(NAME)_CFLAGS += $(KM_ID2_CFLAGS)
|
||||
endif
|
||||
|
||||
################################################################################
|
||||
|
||||
GLOBAL_INCLUDES += ../include/id2
|
||||
|
||||
$(NAME)_INCLUDES += ./src
|
||||
$(NAME)_INCLUDES += ../irot/include
|
||||
|
||||
$(NAME)_SOURCES := \
|
||||
./src/core/id2_client.c \
|
||||
./src/core/km_impl.c \
|
||||
./src/core/otp.c \
|
||||
./src/alg/alg.c \
|
||||
./src/alg/basex64.c \
|
||||
./src/alg/hashsum.c \
|
||||
./src/log/log.c \
|
||||
./src/util/util.c \
|
||||
./platform/irot_pal.c
|
||||
|
||||
$(NAME)_COMPONENTS += alicrypto
|
||||
$(NAME)_COMPONENTS += irot
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue