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
a82556d8
Commit
a82556d8
authored
9 years ago
by
Oleg Hahm
Browse files
Options
Downloads
Patches
Plain Diff
make: always include toolchain dependent Makefile
parent
b9824b9e
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
Makefile.include
+26
-0
26 additions, 0 deletions
Makefile.include
cpu/Makefile.include.cortexm_common
+0
-26
0 additions, 26 deletions
cpu/Makefile.include.cortexm_common
with
26 additions
and
26 deletions
Makefile.include
+
26
−
0
View file @
a82556d8
...
...
@@ -136,6 +136,32 @@ ifneq (0,$(shell test -d $(RIOTBOARD)/$(BOARD); echo $$?))
$(
error
The specified board
$(
BOARD
)
does not exist.
)
endif
# Use TOOLCHAIN environment variable to select the toolchain to use.
# Default: gnu
TOOLCHAIN
?=
gnu
# TOOLCHAIN = clang is an alias for TOOLCHAIN = llvm
ifeq
(clang,$(TOOLCHAIN))
# use override so that we can redefine a variable set on the command line (as
# opposed to one set in the environment)
override
TOOLCHAIN
:=
llvm
endif
# TOOLCHAIN = gcc is an alias for TOOLCHAIN = gnu
ifeq
(gcc,$(TOOLCHAIN))
# use override so that we can redefine a variable set on the command line (as
# opposed to one set in the environment)
override
TOOLCHAIN
:=
gnu
endif
ifeq
(,$(TOOLCHAIN))
override
TOOLCHAIN
:=
gnu
endif
export
TOOLCHAIN
# Import all toolchain settings
include
$(RIOTCPU)/Makefile.include.$(TOOLCHAIN)
# mandatory includes!
include
$(RIOTBASE)/Makefile.modules
include
$(RIOTBOARD)/$(BOARD)/Makefile.include
...
...
This diff is collapsed.
Click to expand it.
cpu/Makefile.include.cortexm_common
+
0
−
26
View file @
a82556d8
# Target triple for the build. Use arm-none-eabi if you are unsure.
export
TARGET_TRIPLE
?=
arm-none-eabi
# Use TOOLCHAIN environment variable to select the toolchain to use.
# Default: gnu
TOOLCHAIN
?=
gnu
# TOOLCHAIN = clang is an alias for TOOLCHAIN = llvm
ifeq
(clang,$(TOOLCHAIN))
# use override so that we can redefine a variable set on the command line (as
# opposed to one set in the environment)
override
TOOLCHAIN
:=
llvm
endif
# TOOLCHAIN = gcc is an alias for TOOLCHAIN = gnu
ifeq
(gcc,$(TOOLCHAIN))
# use override so that we can redefine a variable set on the command line (as
# opposed to one set in the environment)
override
TOOLCHAIN
:=
gnu
endif
ifeq
(,$(TOOLCHAIN))
override
TOOLCHAIN
:=
gnu
endif
export
TOOLCHAIN
# default toolchain prefix, defaults to target triple followed by a dash, you
# will most likely not need to touch this.
export
PREFIX
?=
$(
if
$(
TARGET_TRIPLE
)
,
$(
TARGET_TRIPLE
)
-
)
...
...
@@ -116,9 +93,6 @@ endif
# CPU depends on the cortex-m common module, so include it:
include
$(RIOTCPU)/cortexm_common/Makefile.include
# Import all toolchain settings
include
$(RIOTCPU)/Makefile.include.$(TOOLCHAIN)
# use the nano-specs of Newlib when available
ifeq
($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
export
LINKFLAGS
+=
-specs
=
nano.specs
-lc
-lnosys
...
...
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