Skip to content

Commit beab422

Browse files
author
deepikabhavnani
committed
-mcpu option not needed for v8M devices
-mcpu option if set for v8M CPU;s it will add DSP feature as default which is optional. Hence setting just the architecture for Cortex-M23 and Cortex-M33
1 parent 08b4e34 commit beab422

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tools/toolchains/arm.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,7 @@ def __init__(self, target, *args, **kwargs):
393393
self.flags['common'].append("-mcpu=%s" % target.core.lower()[:-1])
394394
self.flags['ld'].append("--cpu=%s" % target.core.lower()[:-1])
395395
self.SHEBANG += " -mcpu=%s" % target.core.lower()[:-1]
396-
elif target.core.lower().endswith("ns"):
397-
self.flags['common'].append("-mcpu=%s" % target.core.lower()[:-3])
398-
self.flags['ld'].append("--cpu=%s" % target.core.lower()[:-3])
399-
self.SHEBANG += " -mcpu=%s" % target.core.lower()[:-3]
400-
else:
396+
elif not target.core.startswith("Cortex-M23") and not target.core.startswith("Cortex-M33"):
401397
self.flags['common'].append("-mcpu=%s" % target.core.lower())
402398
self.flags['ld'].append("--cpu=%s" % target.core.lower())
403399
self.SHEBANG += " -mcpu=%s" % target.core.lower()

0 commit comments

Comments
 (0)