Skip to content

Commit af52c30

Browse files
authored
Merge pull request #9433 from deepikabhavnani/asm_v8m_flags
Set DSP and floating point flags for ASM files
2 parents 0c85d44 + ddc7627 commit af52c30

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
@@ -444,12 +444,14 @@ def __init__(self, target, *args, **kwargs):
444444
"Cortex-M7F": "Cortex-M7.fp.sp",
445445
"Cortex-M7FD": "Cortex-M7.fp.dp",
446446
"Cortex-M23-NS": "Cortex-M23",
447-
"Cortex-M33-NS": "Cortex-M33" }.get(target.core, target.core)
448-
449-
if target.core.startswith("Cortex-M33"):
450-
self.flags['asm'].append("--cpu=Cortex-M33.no_dsp.no_fp")
451-
else :
452-
self.flags['asm'].append("--cpu=%s" % asm_cpu)
447+
"Cortex-M33": "Cortex-M33.no_dsp.no_fp",
448+
"Cortex-M33-NS": "Cortex-M33.no_dsp.no_fp",
449+
"Cortex-M33F": "Cortex-M33.no_dsp",
450+
"Cortex-M33F-NS": "Cortex-M33.no_dsp",
451+
"Cortex-M33FD": "Cortex-M33",
452+
"Cortex-M33FD-NS": "Cortex-M33"}.get(target.core, target.core)
453+
454+
self.flags['asm'].append("--cpu=%s" % asm_cpu)
453455

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

0 commit comments

Comments
 (0)