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
b16a3b3e
Commit
b16a3b3e
authored
10 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
board: arduino-due: adapt to common board Makefile
parent
51a9641e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/arduino-due/Makefile.include
+8
-38
8 additions, 38 deletions
boards/arduino-due/Makefile.include
with
8 additions
and
38 deletions
boards/arduino-due/Makefile.include
+
8
−
38
View file @
b16a3b3e
# define the cpu used by the arduino due board
export
CPU
=
sam3x8e
# define tools used for building the project
export
PREFIX
=
arm-none-eabi-
export
CC
=
$(
PREFIX
)
gcc
export
CXX
=
$(
PREFIX
)
g++
export
AR
=
$(
PREFIX
)
ar
export
AS
=
$(
PREFIX
)
as
export
LINK
=
$(
PREFIX
)
gcc
export
SIZE
=
$(
PREFIX
)
size
export
OBJCOPY
=
$(
PREFIX
)
objcopy
export
TERMPROG
=
$(
RIOTBASE
)
/dist/tools/pyterm/pyterm
export
FLASHER
=
$(
RIOTBOARD
)
/
$(
BOARD
)
/dist/flash.sh
export
OFLAGS
=
-O
binary
#define the flash-tool and default port depending on the host operating system
OS
:=
$(
shell
uname
)
ifeq
($(OS),Linux)
PORT
?=
/dev/ttyACM0
else
ifeq
($(OS),Darwin)
PORT
?=
$(
shell
ls
-1
/dev/tty.usbmodem
*
|
head
-n
1
)
else
$(info CAUTION
:
No flash tool for your host system found!)
# TODO: add support for windows as host platform
endif
export
PORT
# define the default port depending on the host OS
PORT_LINUX
?=
/dev/ttyACM0
PORT_DARWIN
?=
$(
shell
ls
-1
/dev/tty.usbmodem
*
|
head
-n
1
)
# define build specific options
export
CPU_USAGE
=
-mcpu
=
cortex-m3
export
CFLAGS
+=
-ggdb
-g3
-std
=
gnu99
-Os
-Wall
-Wstrict-prototypes
$(
CPU_USAGE
)
$(
FPU_USAGE
)
-mlittle-endian
-mthumb
-mno-thumb-interwork
-nostartfiles
export
CFLAGS
+=
-ffunction-sections
-fdata-sections
-fno-builtin
export
ASFLAGS
+=
-ggdb
-g3
$(
CPU_USAGE
)
$(
FPU_USAGE
)
-mlittle-endian
export
LINKFLAGS
+=
-g3
-ggdb
-std
=
gnu99
$(
CPU_USAGE
)
$(
FPU_USAGE
)
-mlittle-endian
-static
-lgcc
-mthumb
-mno-thumb-interwork
-nostartfiles
# linkerscript specified in cpu/Makefile.include
export
LINKFLAGS
+=
-T
$(
LINKERSCRIPT
)
export
OFLAGS
+=
-O
binary
export
TERMFLAGS
+=
-p
"
$(
PORT
)
"
# setup serial terminal
include
$(RIOTBOARD)/Makefile.include.serial
# use the nano-specs of the 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
endif
# export board specific includes to the global includes-listing
export
INCLUDES
+=
-I
$(
RIOTBOARD
)
/
$(
BOARD
)
/include
# include cortex defaults
include
$(RIOTBOARD)/Makefile.include.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