mirror of https://github.com/ARMmbed/mbed-os.git
Deduplicate RAM defines to linker command line
parent
c37a31c5d4
commit
dabad7a074
|
@ -926,24 +926,14 @@ class mbedToolchain:
|
||||||
self.ld.append(define_string)
|
self.ld.append(define_string)
|
||||||
self.flags["ld"].append(define_string)
|
self.flags["ld"].append(define_string)
|
||||||
|
|
||||||
flags2params = {}
|
|
||||||
if self.target.is_PSA_non_secure_target:
|
|
||||||
flags2params = {
|
|
||||||
"MBED_RAM_START": "target.non-secure-ram-start",
|
|
||||||
"MBED_RAM_SIZE": "target.non-secure-ram-size"
|
|
||||||
}
|
|
||||||
if self.target.is_PSA_secure_target:
|
if self.target.is_PSA_secure_target:
|
||||||
flags2params = {
|
for flag, param in [
|
||||||
"MBED_RAM_START": "target.secure-ram-start",
|
("MBED_PUBLIC_RAM_START", "target.public-ram-start"),
|
||||||
"MBED_RAM_SIZE": "target.secure-ram-size",
|
("MBED_PUBLIC_RAM_SIZE", "target.public-ram-size")
|
||||||
"MBED_PUBLIC_RAM_START": "target.public-ram-start",
|
]:
|
||||||
"MBED_PUBLIC_RAM_SIZE": "target.public-ram-size"
|
define_string = self.make_ld_define(flag, params[param].value)
|
||||||
}
|
self.ld.append(define_string)
|
||||||
|
self.flags["ld"].append(define_string)
|
||||||
for flag, param in flags2params.items():
|
|
||||||
define_string = self.make_ld_define(flag, params[param].value)
|
|
||||||
self.ld.append(define_string)
|
|
||||||
self.flags["ld"].append(define_string)
|
|
||||||
|
|
||||||
# Set the configuration data
|
# Set the configuration data
|
||||||
def set_config_data(self, config_data):
|
def set_config_data(self, config_data):
|
||||||
|
|
Loading…
Reference in New Issue