From 6921d547b6687b74d147af2971dfe076edbb7918 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Tue, 2 Jul 2024 08:33:05 +0200 Subject: [PATCH] Adapt check_names.py Signed-off-by: Ronald Cron --- tests/scripts/check_names.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tests/scripts/check_names.py b/tests/scripts/check_names.py index 142233c6b3..89d75c3272 100755 --- a/tests/scripts/check_names.py +++ b/tests/scripts/check_names.py @@ -245,10 +245,14 @@ class CodeParser(): ]) all_macros["internal"] = self.parse_macros([ "library/*.h", + "tf-psa-crypto/core/*.h", + "tf-psa-crypto/drivers/builtin/src/*.h", "tests/include/test/drivers/*.h", ]) all_macros["private"] = self.parse_macros([ "library/*.c", + "tf-psa-crypto/core/*.c", + "tf-psa-crypto/drivers/builtin/src/*.c", ]) enum_consts = self.parse_enum_consts([ "include/mbedtls/*.h", @@ -256,7 +260,11 @@ class CodeParser(): "tf-psa-crypto/include/psa/*.h", "tf-psa-crypto/drivers/builtin/include/mbedtls/*.h", "library/*.h", + "tf-psa-crypto/core/*.h", + "tf-psa-crypto/drivers/builtin/src/*.h", "library/*.c", + "tf-psa-crypto/core/*.c", + "tf-psa-crypto/drivers/builtin/src/*.c", "3rdparty/everest/include/everest/everest.h", "3rdparty/everest/include/everest/x25519.h" ]) @@ -266,6 +274,8 @@ class CodeParser(): "tf-psa-crypto/include/psa/*.h", "tf-psa-crypto/drivers/builtin/include/mbedtls/*.h", "library/*.h", + "tf-psa-crypto/core/*.h", + "tf-psa-crypto/drivers/builtin/src/*.h", "3rdparty/everest/include/everest/everest.h", "3rdparty/everest/include/everest/x25519.h" ], ["3rdparty/p256-m/p256-m/p256-m.h"]) @@ -275,12 +285,16 @@ class CodeParser(): "tf-psa-crypto/include/psa/*.h", "tf-psa-crypto/drivers/builtin/include/mbedtls/*.h", "library/*.h", + "tf-psa-crypto/core/*.h", + "tf-psa-crypto/drivers/builtin/src/*.h", "3rdparty/everest/include/everest/everest.h", "3rdparty/everest/include/everest/x25519.h", "library/*.c", + "tf-psa-crypto/core/*.c", + "tf-psa-crypto/drivers/builtin/src/*.c", "3rdparty/everest/library/everest.c", "3rdparty/everest/library/x25519.c" - ], ["library/psa_crypto_driver_wrappers.h"]) + ], ["tf-psa-crypto/core/psa_crypto_driver_wrappers.h"]) symbols = self.parse_symbols() # Remove identifier macros like mbedtls_printf or mbedtls_calloc