@@ -924,24 +924,14 @@ def add_linker_defines(self):
924
924
self .ld .append (define_string )
925
925
self .flags ["ld" ].append (define_string )
926
926
927
- flags2params = {}
928
- if self .target .is_PSA_non_secure_target :
929
- flags2params = {
930
- "MBED_RAM_START" : "target.non-secure-ram-start" ,
931
- "MBED_RAM_SIZE" : "target.non-secure-ram-size"
932
- }
933
927
if self .target .is_PSA_secure_target :
934
- flags2params = {
935
- "MBED_RAM_START" : "target.secure-ram-start" ,
936
- "MBED_RAM_SIZE" : "target.secure-ram-size" ,
937
- "MBED_PUBLIC_RAM_START" : "target.public-ram-start" ,
938
- "MBED_PUBLIC_RAM_SIZE" : "target.public-ram-size"
939
- }
940
-
941
- for flag , param in flags2params .items ():
942
- define_string = self .make_ld_define (flag , params [param ].value )
943
- self .ld .append (define_string )
944
- self .flags ["ld" ].append (define_string )
928
+ for flag , param in [
929
+ ("MBED_PUBLIC_RAM_START" , "target.public-ram-start" ),
930
+ ("MBED_PUBLIC_RAM_SIZE" , "target.public-ram-size" )
931
+ ]:
932
+ define_string = self .make_ld_define (flag , params [param ].value )
933
+ self .ld .append (define_string )
934
+ self .flags ["ld" ].append (define_string )
945
935
946
936
# Set the configuration data
947
937
def set_config_data (self , config_data ):
0 commit comments