Skip to content

Commit ddc7627

Browse files
author
Deepika
committed
Set DSP and floating point flags for ASM files
1 parent 0b9587f commit ddc7627

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tools/toolchains/arm.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,12 +453,14 @@ def __init__(self, target, *args, **kwargs):
453453
"Cortex-M7F": "Cortex-M7.fp.sp",
454454
"Cortex-M7FD": "Cortex-M7.fp.dp",
455455
"Cortex-M23-NS": "Cortex-M23",
456-
"Cortex-M33-NS": "Cortex-M33" }.get(target.core, target.core)
457-
458-
if target.core.startswith("Cortex-M33"):
459-
self.flags['asm'].append("--cpu=Cortex-M33.no_dsp.no_fp")
460-
else :
461-
self.flags['asm'].append("--cpu=%s" % asm_cpu)
456+
"Cortex-M33": "Cortex-M33.no_dsp.no_fp",
457+
"Cortex-M33-NS": "Cortex-M33.no_dsp.no_fp",
458+
"Cortex-M33F": "Cortex-M33.no_dsp",
459+
"Cortex-M33F-NS": "Cortex-M33.no_dsp",
460+
"Cortex-M33FD": "Cortex-M33",
461+
"Cortex-M33FD-NS": "Cortex-M33"}.get(target.core, target.core)
462+
463+
self.flags['asm'].append("--cpu=%s" % asm_cpu)
462464

463465
self.cc = ([join(TOOLCHAIN_PATHS["ARMC6"], "armclang")] +
464466
self.flags['common'] + self.flags['c'])

0 commit comments

Comments
 (0)