mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 19:21:09 +01:00
Use intermediate variables for TF-PSA-Crypto's contribution to LOCAL_CFLAGS
Define these intermediate variables in the crypto helper file. No behavior change except possibly an inconsequential reordering of compiler options. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -39,17 +39,12 @@ CFLAGS ?= -O2
|
|||||||
WARNING_CFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral
|
WARNING_CFLAGS ?= -Wall -Wextra -Wformat=2 -Wno-format-nonliteral
|
||||||
LDFLAGS ?=
|
LDFLAGS ?=
|
||||||
|
|
||||||
# Include ../include, ../tf-psa-crypto/include and
|
# For the time being, Mbed TLS uses non-public interfaces of TF-PSA-Crypto,
|
||||||
# ../tf-psa-crypto/drivers/builtin/include for public headers and .,
|
# so we include both public and internal headers.
|
||||||
# ../tf-psa-crypto/core and ../tf-psa-crypto/drivers/builtin/src for
|
|
||||||
# private headers.
|
|
||||||
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I. \
|
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I. \
|
||||||
-I../tf-psa-crypto/core \
|
$(TF_PSA_CRYPTO_LIBRARY_PRIVATE_INCLUDE) \
|
||||||
-I../tf-psa-crypto/drivers/builtin/src \
|
|
||||||
-I../include \
|
-I../include \
|
||||||
-I../tf-psa-crypto/include \
|
$(TF_PSA_CRYPTO_LIBRARY_PUBLIC_INCLUDE) \
|
||||||
-I../tf-psa-crypto/drivers/builtin/include \
|
|
||||||
$(THIRDPARTY_INCLUDES) \
|
|
||||||
-D_FILE_OFFSET_BITS=64
|
-D_FILE_OFFSET_BITS=64
|
||||||
LOCAL_LDFLAGS =
|
LOCAL_LDFLAGS =
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ LDFLAGS ?=
|
|||||||
|
|
||||||
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I$(MBEDTLS_TEST_PATH)/include \
|
LOCAL_CFLAGS = $(WARNING_CFLAGS) -I$(MBEDTLS_TEST_PATH)/include \
|
||||||
-I$(MBEDTLS_PATH)/framework/tests/include \
|
-I$(MBEDTLS_PATH)/framework/tests/include \
|
||||||
-I$(MBEDTLS_PATH)/include -I$(MBEDTLS_PATH)/tf-psa-crypto/include \
|
-I$(MBEDTLS_PATH)/include \
|
||||||
-I$(MBEDTLS_PATH)/tf-psa-crypto/drivers/builtin/include \
|
$(TF_PSA_CRYPTO_LIBRARY_PUBLIC_INCLUDE) \
|
||||||
-D_FILE_OFFSET_BITS=64
|
-D_FILE_OFFSET_BITS=64
|
||||||
LOCAL_CXXFLAGS = $(WARNING_CXXFLAGS) $(LOCAL_CFLAGS)
|
LOCAL_CXXFLAGS = $(WARNING_CXXFLAGS) $(LOCAL_CFLAGS)
|
||||||
|
|
||||||
|
|||||||
@@ -32,3 +32,16 @@ THIRDPARTY_DIR := $(TF_PSA_CRYPTO_PATH)/drivers
|
|||||||
THIRDPARTY_INCLUDES =
|
THIRDPARTY_INCLUDES =
|
||||||
include $(TF_PSA_CRYPTO_PATH)/drivers/everest/Makefile.inc
|
include $(TF_PSA_CRYPTO_PATH)/drivers/everest/Makefile.inc
|
||||||
include $(TF_PSA_CRYPTO_PATH)/drivers/p256-m/Makefile.inc
|
include $(TF_PSA_CRYPTO_PATH)/drivers/p256-m/Makefile.inc
|
||||||
|
|
||||||
|
# Directories with headers of public interfaces of TF-PSA-Crypto
|
||||||
|
TF_PSA_CRYPTO_LIBRARY_PUBLIC_INCLUDE = \
|
||||||
|
-I$(TF_PSA_CRYPTO_PATH)/include \
|
||||||
|
-I$(TF_PSA_CRYPTO_PATH)/drivers/builtin/include \
|
||||||
|
$(THIRDPARTY_INCLUDES)
|
||||||
|
|
||||||
|
# Directories with headers of internal interfaces of TF-PSA-Crypto
|
||||||
|
# (currently consumed by Mbed TLS, eventually not so when we've finished
|
||||||
|
# cleaning up)
|
||||||
|
TF_PSA_CRYPTO_LIBRARY_PRIVATE_INCLUDE = \
|
||||||
|
-I$(TF_PSA_CRYPTO_PATH)/core \
|
||||||
|
-I$(TF_PSA_CRYPTO_PATH)/drivers/builtin/src
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ include ../scripts/common.make
|
|||||||
TEST_FLAGS ?= $(if $(filter-out 0 OFF Off off NO No no FALSE False false N n,$(CTEST_OUTPUT_ON_FAILURE)),-v,)
|
TEST_FLAGS ?= $(if $(filter-out 0 OFF Off off NO No no FALSE False false N n,$(CTEST_OUTPUT_ON_FAILURE)),-v,)
|
||||||
|
|
||||||
# Also include private headers, for the sake of invasive tests.
|
# Also include private headers, for the sake of invasive tests.
|
||||||
LOCAL_CFLAGS += -I$(MBEDTLS_PATH)/library -I$(MBEDTLS_PATH)/tf-psa-crypto/core -I$(MBEDTLS_PATH)/tf-psa-crypto/drivers/builtin/src
|
LOCAL_CFLAGS += -I$(MBEDTLS_PATH)/library
|
||||||
|
LOCAL_CFLAGS += $(TF_PSA_CRYPTO_LIBRARY_PRIVATE_INCLUDE)
|
||||||
|
|
||||||
# Enable definition of various functions used throughout the testsuite
|
# Enable definition of various functions used throughout the testsuite
|
||||||
# (gethostname, strdup, fileno...) even when compiling with -std=c99. Harmless
|
# (gethostname, strdup, fileno...) even when compiling with -std=c99. Harmless
|
||||||
|
|||||||
Reference in New Issue
Block a user