Skip to content

Commit d261f43

Browse files
committed
Use constants for TFM config files
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
1 parent 0814bef commit d261f43

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/bin/mtest

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ WARNING_FLAGS = {
6767
WARNING_FLAGS["arm-none-eabi-gcc"] = WARNING_FLAGS["gcc"]
6868
WARNING_FLAGS["armclang"] = WARNING_FLAGS["clang"]
6969

70+
TFM_CONFIG = "tfm_mbedcrypto_config_profile_medium.h"
71+
TFM_CRYPTO_CONFIG = "crypto_config_profile_medium.h"
72+
7073
Target = namedtuple("Target", ["compiler", "arch", "baremetal", "isa", "arch_isa", "is_native", "arm_arch", "cflags", "ldflags", "config"])
7174

7275

@@ -660,8 +663,8 @@ Build targets: build the library by default, or files (e.g. aes.o), programs (e.
660663
supported_configs = get_supported_configs()
661664
config = []
662665
if args.size_tfm:
663-
config.append("tfm_mbedcrypto_config_profile_medium.h")
664-
config.append("crypto_config_profile_medium.h")
666+
config.append(TFM_CONFIG)
667+
config.append(TFM_CRYPTO_CONFIG)
665668
for a in list(args.rest):
666669
if a.endswith(".h") and os.path.exists(a):
667670
# arbitrary .h file

0 commit comments

Comments
 (0)