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
04c37094
Commit
04c37094
authored
9 years ago
by
Joakim Nohlgård
Browse files
Options
Downloads
Patches
Plain Diff
make: Homogenize CFLAGS settings across cortexm_common, avr, msp430_common
parent
00f875b0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
boards/arduino-mega2560/Makefile.include
+8
-4
8 additions, 4 deletions
boards/arduino-mega2560/Makefile.include
cpu/Makefile.include.cortexm_common
+1
-1
1 addition, 1 deletion
cpu/Makefile.include.cortexm_common
cpu/Makefile.include.msp430_common
+1
-1
1 addition, 1 deletion
cpu/Makefile.include.msp430_common
with
10 additions
and
6 deletions
boards/arduino-mega2560/Makefile.include
+
8
−
4
View file @
04c37094
...
@@ -43,9 +43,13 @@ ifeq ($(PROGRAMMER), stk500v2)
...
@@ -43,9 +43,13 @@ ifeq ($(PROGRAMMER), stk500v2)
endif
endif
# define build specific options
# define build specific options
export
CPU_USAGE
=
-mmcu
=
atmega2560
export
CFLAGS_CPU
=
-mmcu
=
atmega2560
$(
CFLAGS_FPU
)
export
CFLAGS
+=
-ggdb
-g3
-Os
$(
CPU_USAGE
)
export
CFLAGS_LINK
=
-ffunction-sections
-fdata-sections
-fno-builtin
-fshort-enums
export
ASFLAGS
+=
-ggdb
-g3
$(
CPU_USAGE
)
$(
FPU_USAGE
)
export
CFLAGS_DBG
=
-ggdb
-g3
export
LINKFLAGS
+=
-g3
-ggdb
$(
CPU_USAGE
)
$(
FPU_USAGE
)
-static
-lgcc
-e
reset_handler
export
CFLAGS_OPT
?=
-Os
export
CFLAGS
+=
$(
CFLAGS_CPU
)
$(
CFLAGS_LINK
)
$(
CFLAGS_DBG
)
$(
CFLAGS_OPT
)
export
ASFLAGS
+=
$(
CFLAGS_CPU
)
$(
CFLAGS_DBG
)
export
LINKFLAGS
+=
$(
CFLAGS_CPU
)
$(
CFLAGS_DBG
)
$(
CFLAGS_OPT
)
-static
-lgcc
-e
reset_handler
export
OFLAGS
+=
-j
.text
-j
.data
-O
ihex
export
OFLAGS
+=
-j
.text
-j
.data
-O
ihex
export
FFLAGS
+=
-p
m2560
-c
$(
PROGRAMMER
)
$(
PROGRAMMER_FLAGS
)
-F
-U
flash:w:bin/
$(
BOARD
)
/
$(
PROJECT
)$(
APPLICATION
)
.hex
export
FFLAGS
+=
-p
m2560
-c
$(
PROGRAMMER
)
$(
PROGRAMMER_FLAGS
)
-F
-U
flash:w:bin/
$(
BOARD
)
/
$(
PROJECT
)$(
APPLICATION
)
.hex
This diff is collapsed.
Click to expand it.
cpu/Makefile.include.cortexm_common
+
1
−
1
View file @
04c37094
...
@@ -44,7 +44,7 @@ export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
...
@@ -44,7 +44,7 @@ export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
export
ASFLAGS
+=
$(
CFLAGS_CPU
)
$(
CFLAGS_DBG
)
export
ASFLAGS
+=
$(
CFLAGS_CPU
)
$(
CFLAGS_DBG
)
export
LINKFLAGS
+=
-L
$(
RIOTCPU
)
/
$(
CPU
)
/ldscripts
-L
$(
RIOTCPU
)
/cortexm_common/ldscripts
export
LINKFLAGS
+=
-L
$(
RIOTCPU
)
/
$(
CPU
)
/ldscripts
-L
$(
RIOTCPU
)
/cortexm_common/ldscripts
export
LINKFLAGS
+=
-T
$(
RIOTCPU
)
/
$(
CPU
)
/ldscripts/
$(
CPU_MODEL
)
.ld
-Wl
,--fatal-warnings
export
LINKFLAGS
+=
-T
$(
RIOTCPU
)
/
$(
CPU
)
/ldscripts/
$(
CPU_MODEL
)
.ld
-Wl
,--fatal-warnings
export
LINKFLAGS
+=
$(
CFLAGS_DBG
)
$(
CFLAGS_
CPU
)
-static
-lgcc
-nostartfiles
export
LINKFLAGS
+=
$(
CFLAGS_CPU
)
$(
CFLAGS_DBG
)
$(
CFLAGS_
OPT
)
-static
-lgcc
-nostartfiles
export
LINKFLAGS
+=
-Wl
,--gc-sections
export
LINKFLAGS
+=
-Wl
,--gc-sections
# This CPU implementation is using the new core/CPU interface:
# This CPU implementation is using the new core/CPU interface:
...
...
This diff is collapsed.
Click to expand it.
cpu/Makefile.include.msp430_common
+
1
−
1
View file @
04c37094
...
@@ -11,7 +11,7 @@ export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
...
@@ -11,7 +11,7 @@ export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
# export assmebly flags
# export assmebly flags
export
ASFLAGS
+=
$(
CFLAGS_CPU
)
--defsym
$(
CPU_MODEL
)
=
1
$(
CFLAGS_DBG
)
export
ASFLAGS
+=
$(
CFLAGS_CPU
)
--defsym
$(
CPU_MODEL
)
=
1
$(
CFLAGS_DBG
)
# export linker flags
# export linker flags
export
LINKFLAGS
+=
$(
CFLAGS_CPU
)
-lgcc
export
LINKFLAGS
+=
$(
CFLAGS_CPU
)
$(
CFLAGS_DBG
)
$(
CFLAGS_OPT
)
-static
-lgcc
# Import all toolchain settings
# Import all toolchain settings
include
$(RIOTCPU)/Makefile.include.gnu
include
$(RIOTCPU)/Makefile.include.gnu
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