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