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
302699eb
Commit
302699eb
authored
9 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
make: move cpu specific CFLAGS into cpu makefile
parent
625497e0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
boards/Makefile.include.cortex_common
+0
-6
0 additions, 6 deletions
boards/Makefile.include.cortex_common
cpu/Makefile.include.cortex_common
+5
-0
5 additions, 0 deletions
cpu/Makefile.include.cortex_common
with
5 additions
and
6 deletions
boards/Makefile.include.cortex_common
+
0
−
6
View file @
302699eb
...
@@ -5,12 +5,6 @@ include $(RIOTBOARD)/Makefile.include.gnu
...
@@ -5,12 +5,6 @@ include $(RIOTBOARD)/Makefile.include.gnu
# use cortex name of CPU folder, but enable board Makefile to override
# use cortex name of CPU folder, but enable board Makefile to override
export
MCPU
?=
$(
CORTEX
)
export
MCPU
?=
$(
CORTEX
)
#
# CPU model specifics
ifeq
($(CORTEX),cortex-m4)
CFLAGS_FPU
+=
-mfloat-abi
=
hard
-mfpu
=
fpv4-sp-d16
endif
# define build specific options
# define build specific options
export
CFLAGS_CPU
=
-mcpu
=
$(
MCPU
)
-mlittle-endian
-mthumb
-mno-thumb-interwork
$(
CFLAGS_FPU
)
export
CFLAGS_CPU
=
-mcpu
=
$(
MCPU
)
-mlittle-endian
-mthumb
-mno-thumb-interwork
$(
CFLAGS_FPU
)
export
CFLAGS_STYLE
=
-std
=
gnu99
-Wall
-Wstrict-prototypes
export
CFLAGS_STYLE
=
-std
=
gnu99
-Wall
-Wstrict-prototypes
...
...
This diff is collapsed.
Click to expand it.
cpu/Makefile.include.cortex_common
+
5
−
0
View file @
302699eb
# This CPU implementation is using the new core/CPU interface:
# This CPU implementation is using the new core/CPU interface:
export
CFLAGS
+=
-DCOREIF_NG
=
1
export
CFLAGS
+=
-DCOREIF_NG
=
1
# CPU model specifics
ifeq
($(CORTEX),cortex-m4)
export
CFLAGS_FPU
+=
-mfloat-abi
=
hard
-mfpu
=
fpv4-sp-d16
endif
# Tell the build system that the CPU depends on the Cortex-M common files:
# Tell the build system that the CPU depends on the Cortex-M common files:
export
USEMODULE
+=
$(
CORTEX
)
_common
export
USEMODULE
+=
$(
CORTEX
)
_common
...
...
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