mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-30 16:26:33 +08:00
Move some crypto core and drivers variable definitions to crypto-common.make
No behavior change. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
7bef731f0b
commit
46568f3c6e
@ -16,9 +16,6 @@ include $(MBEDTLS_PATH)/framework/exported.make
|
|||||||
|
|
||||||
include $(MBEDTLS_PATH)/scripts/crypto-common.make
|
include $(MBEDTLS_PATH)/scripts/crypto-common.make
|
||||||
|
|
||||||
TF_PSA_CRYPTO_CORE_PATH = $(MBEDTLS_PATH)/tf-psa-crypto/core
|
|
||||||
TF_PSA_CRYPTO_DRIVERS_BUILTIN_SRC_PATH = $(MBEDTLS_PATH)/tf-psa-crypto/drivers/builtin/src
|
|
||||||
|
|
||||||
# List the generated files without running a script, so that this
|
# List the generated files without running a script, so that this
|
||||||
# works with no tooling dependencies when GEN_FILES is disabled.
|
# works with no tooling dependencies when GEN_FILES is disabled.
|
||||||
GENERATED_FILES := \
|
GENERATED_FILES := \
|
||||||
@ -46,10 +43,14 @@ LDFLAGS ?=
|
|||||||
# ../tf-psa-crypto/drivers/builtin/include for public headers and .,
|
# ../tf-psa-crypto/drivers/builtin/include for public headers and .,
|
||||||
# ../tf-psa-crypto/core and ../tf-psa-crypto/drivers/builtin/src for
|
# ../tf-psa-crypto/core and ../tf-psa-crypto/drivers/builtin/src for
|
||||||
# private headers.
|
# private headers.
|
||||||
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I. -I../tf-psa-crypto/core \
|
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I. \
|
||||||
|
-I../tf-psa-crypto/core \
|
||||||
-I../tf-psa-crypto/drivers/builtin/src \
|
-I../tf-psa-crypto/drivers/builtin/src \
|
||||||
-I../include -I../tf-psa-crypto/include \
|
-I../include \
|
||||||
-I../tf-psa-crypto/drivers/builtin/include -D_FILE_OFFSET_BITS=64
|
-I../tf-psa-crypto/include \
|
||||||
|
-I../tf-psa-crypto/drivers/builtin/include \
|
||||||
|
$(THIRDPARTY_INCLUDES) \
|
||||||
|
-D_FILE_OFFSET_BITS=64
|
||||||
LOCAL_LDFLAGS =
|
LOCAL_LDFLAGS =
|
||||||
|
|
||||||
ifdef DEBUG
|
ifdef DEBUG
|
||||||
@ -123,11 +124,6 @@ OBJS_CRYPTO = $(patsubst %.c, %.o,$(wildcard $(TF_PSA_CRYPTO_CORE_PATH)/*.c $(TF
|
|||||||
GENERATED_OBJS_CRYPTO = $(TF_PSA_CRYPTO_CORE_PATH)/psa_crypto_driver_wrappers_no_static.o
|
GENERATED_OBJS_CRYPTO = $(TF_PSA_CRYPTO_CORE_PATH)/psa_crypto_driver_wrappers_no_static.o
|
||||||
OBJS_CRYPTO := $(filter-out $(GENERATED_OBJS_CRYPTO),$(OBJS_CRYPTO))
|
OBJS_CRYPTO := $(filter-out $(GENERATED_OBJS_CRYPTO),$(OBJS_CRYPTO))
|
||||||
OBJS_CRYPTO += $(GENERATED_OBJS_CRYPTO)
|
OBJS_CRYPTO += $(GENERATED_OBJS_CRYPTO)
|
||||||
|
|
||||||
THIRDPARTY_DIR := $(MBEDTLS_PATH)/tf-psa-crypto/drivers
|
|
||||||
include $(MBEDTLS_PATH)/tf-psa-crypto/drivers/everest/Makefile.inc
|
|
||||||
include $(MBEDTLS_PATH)/tf-psa-crypto/drivers/p256-m/Makefile.inc
|
|
||||||
LOCAL_CFLAGS+=$(THIRDPARTY_INCLUDES)
|
|
||||||
OBJS_CRYPTO+=$(THIRDPARTY_CRYPTO_OBJECTS)
|
OBJS_CRYPTO+=$(THIRDPARTY_CRYPTO_OBJECTS)
|
||||||
|
|
||||||
OBJS_X509= \
|
OBJS_X509= \
|
||||||
|
|||||||
@ -47,11 +47,6 @@ LOCAL_LDFLAGS = ${MBEDTLS_TEST_OBJS} \
|
|||||||
-lmbedcrypto$(SHARED_SUFFIX)
|
-lmbedcrypto$(SHARED_SUFFIX)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
THIRDPARTY_DIR = $(MBEDTLS_PATH)/tf-psa-crypto/drivers
|
|
||||||
include $(THIRDPARTY_DIR)/everest/Makefile.inc
|
|
||||||
include $(THIRDPARTY_DIR)/p256-m/Makefile.inc
|
|
||||||
LOCAL_CFLAGS+=$(THIRDPARTY_INCLUDES)
|
|
||||||
|
|
||||||
ifdef PSASIM
|
ifdef PSASIM
|
||||||
MBEDLIBS=$(PSASIM_PATH)/client_libs/libmbedcrypto.a \
|
MBEDLIBS=$(PSASIM_PATH)/client_libs/libmbedcrypto.a \
|
||||||
$(PSASIM_PATH)/client_libs/libmbedx509.a \
|
$(PSASIM_PATH)/client_libs/libmbedx509.a \
|
||||||
|
|||||||
@ -23,3 +23,12 @@ ifeq (,$(wildcard $(TF_PSA_CRYPTO_PATH)/core/psa_crypto.c))
|
|||||||
$(error $$(TF_PSA_CRYPTO_PATH)/core/psa_crypto.c not found)
|
$(error $$(TF_PSA_CRYPTO_PATH)/core/psa_crypto.c not found)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
TF_PSA_CRYPTO_CORE_PATH = $(MBEDTLS_PATH)/tf-psa-crypto/core
|
||||||
|
TF_PSA_CRYPTO_DRIVERS_BUILTIN_SRC_PATH = $(MBEDTLS_PATH)/tf-psa-crypto/drivers/builtin/src
|
||||||
|
|
||||||
|
# Gather information about crypto drivers that are separate from the main
|
||||||
|
# "builtin" driver (historically located in /3rdparty in Mbed TLS 2.x/3.x).
|
||||||
|
THIRDPARTY_DIR := $(TF_PSA_CRYPTO_PATH)/drivers
|
||||||
|
THIRDPARTY_INCLUDES =
|
||||||
|
include $(TF_PSA_CRYPTO_PATH)/drivers/everest/Makefile.inc
|
||||||
|
include $(TF_PSA_CRYPTO_PATH)/drivers/p256-m/Makefile.inc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user