Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
32ff8e30
Commit
32ff8e30
authored
9 years ago
by
Cenk Gündoğan
Browse files
Options
Downloads
Patches
Plain Diff
cpu/Makefile.include.cortexm_common: don't use cortex-m0plus for clang if unsupported
parent
d2541c84
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpu/Makefile.include.cortexm_common
+13
-0
13 additions, 0 deletions
cpu/Makefile.include.cortexm_common
with
13 additions
and
0 deletions
cpu/Makefile.include.cortexm_common
+
13
−
0
View file @
32ff8e30
...
@@ -11,6 +11,19 @@ export USEMODULE += newlib
...
@@ -11,6 +11,19 @@ export USEMODULE += newlib
# set default for CPU_MODEL
# set default for CPU_MODEL
export
CPU_MODEL
?=
$(
CPU
)
export
CPU_MODEL
?=
$(
CPU
)
# Temporary LLVM/Clang Workaround:
# report cortex-m0 instead of cortex-m0plus if llvm/clang (<= 3.6.2) is used
# llvm/clang version 3.6.2 still does not support the cortex-m0plus mcpu type
ifeq
(llvm,$(TOOLCHAIN))
ifeq
(cortex-m0plus,$(CPU_ARCH))
LLVM_UNSUP
=
$(
shell clang
-target
arm-none-eabi
-mcpu
=
$(
CPU_ARCH
)
-c
-x
c /dev/null
-o
/dev/null
\
>
/dev/null 2>&1
||
echo
1
)
ifeq
(1,$(LLVM_UNSUP))
CPU_ARCH
=
cortex-m0
endif
endif
endif
# export the CPU model and architecture
# export the CPU model and architecture
MODEL
=
$(
shell
echo
$(
CPU_MODEL
)
|
tr
'a-z'
'A-Z'
)
MODEL
=
$(
shell
echo
$(
CPU_MODEL
)
|
tr
'a-z'
'A-Z'
)
export
CFLAGS
+=
-DCPU_MODEL_
$(
MODEL
)
export
CFLAGS
+=
-DCPU_MODEL_
$(
MODEL
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment