diff options
author | Leonardo Sandoval <leonardo.sandoval@linaro.org> | 2020-09-10 12:18:27 -0500 |
---|---|---|
committer | Leonardo Sandoval <leonardo.sandoval@linaro.org> | 2020-09-14 09:27:53 -0500 |
commit | 327131c4c7e41d57aca9f54fd2706ae59d735aaa (patch) | |
tree | 02bec611bb2050129066ce0b8e20b552abcecad9 /drivers | |
parent | ed39d5e3c0709bab22821a1da3a62737c5d531de (diff) | |
download | trusted-firmware-a-327131c4c7e41d57aca9f54fd2706ae59d735aaa.tar.gz |
build_macros.mk: include assert and define loop macros
Loop macros make it easier for developers to include new variables to
assert or define and also help code code readability on makefiles.
Change-Id: I0d21d6e67b3eca8976c4d856ac8ccc02c8bb5ffa
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/auth/mbedtls/mbedtls_common.mk | 11 | ||||
-rw-r--r-- | drivers/measured_boot/measured_boot.mk | 11 |
2 files changed, 14 insertions, 8 deletions
diff --git a/drivers/auth/mbedtls/mbedtls_common.mk b/drivers/auth/mbedtls/mbedtls_common.mk index 94f2f59e12..8454105c2a 100644 --- a/drivers/auth/mbedtls/mbedtls_common.mk +++ b/drivers/auth/mbedtls/mbedtls_common.mk @@ -98,10 +98,13 @@ else endif # Needs to be set to drive mbed TLS configuration correctly -$(eval $(call add_define,TF_MBEDTLS_KEY_ALG_ID)) -$(eval $(call add_define,TF_MBEDTLS_KEY_SIZE)) -$(eval $(call add_define,TF_MBEDTLS_HASH_ALG_ID)) -$(eval $(call add_define,TF_MBEDTLS_USE_AES_GCM)) +$(eval $(call add_defines,\ + $(sort \ + TF_MBEDTLS_KEY_ALG_ID \ + TF_MBEDTLS_KEY_SIZE \ + TF_MBEDTLS_HASH_ALG_ID \ + TF_MBEDTLS_USE_AES_GCM \ +))) $(eval $(call MAKE_LIB,mbedtls)) diff --git a/drivers/measured_boot/measured_boot.mk b/drivers/measured_boot/measured_boot.mk index fc005d5ed0..b7aa48bb97 100644 --- a/drivers/measured_boot/measured_boot.mk +++ b/drivers/measured_boot/measured_boot.mk @@ -25,10 +25,13 @@ endif EVENT_LOG_SIZE := 1024 # Set definitions for mbed TLS library and Measured Boot driver -$(eval $(call add_define,MBEDTLS_MD_ID)) -$(eval $(call add_define,TPM_ALG_ID)) -$(eval $(call add_define,TCG_DIGEST_SIZE)) -$(eval $(call add_define,EVENT_LOG_SIZE)) +$(eval $(call add_defines,\ + $(sort \ + MBEDTLS_MD_ID \ + TPM_ALG_ID \ + TCG_DIGEST_SIZE \ + EVENT_LOG_SIZE \ +))) ifeq (${HASH_ALG}, sha256) ifneq (${TPM_HASH_ALG}, sha256) |