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
b4327e49
Commit
b4327e49
authored
10 years ago
by
Hauke Petersen
Browse files
Options
Downloads
Patches
Plain Diff
board/mbed_lpc1768: cleaned up Makefile.include
parent
73dddfb6
Branches
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
boards/mbed_lpc1768/Makefile.include
+30
-15
30 additions, 15 deletions
boards/mbed_lpc1768/Makefile.include
with
30 additions
and
15 deletions
boards/mbed_lpc1768/Makefile.include
+
30
−
15
View file @
b4327e49
#
#
the cpu
to build for
#
define
the cpu
used by the mbed_lpx1768 board
export
CPU
=
lpc1768
# toolchain config
#define the default port depending on the host OS
OS
:=
$(
shell
uname
)
ifeq
($(OS),Linux)
PORT
?=
/dev/ttyUSB0
else
ifeq
($(OS),Darwin)
PORT
?=
$(
shell
ls
-1
/dev/tty.SLAB_USBtoUART
*
|
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 tools used for building the project
export
PREFIX
=
arm-none-eabi-
export
CC
=
$(
PREFIX
)
gcc
export
CXX
=
$(
PREFIX
)
g++
...
...
@@ -10,8 +22,12 @@ 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
=
export
DEBUGGER
=
export
DEBUGSERVER
=
# define build options
# define build
specific
options
CPU_USAGE
=
-mcpu
=
cortex-m3
FPU_USAGE
=
export
CFLAGS
+=
-ggdb
-g3
-std
=
gnu99
-Os
-Wall
-Wstrict-prototypes
$(
CPU_USAGE
)
$(
FPU_USAGE
)
-mlittle-endian
-mthumb
-mthumb-interwork
-nostartfiles
...
...
@@ -19,21 +35,20 @@ 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
-mthumb-interwork
-nostartfiles
export
LINKFLAGS
+=
-T
$(
RIOTCPU
)
/
$(
CPU
)
/LPC1768.ld
export
OFLAGS
=
-O
binary
export
FFLAGS
=
export
DEBUGGER_FLAGS
=
export
TERMFLAGS
+=
-p
"
$(
PORT
)
"
#LINKFLAGS += -mcpu=cortex-m3 -mthumb -Wl,--gc-sections,--cref -lc -lgcc -lnosys -nostartfiles
# unwanted (CXXUWFLAGS) and extra (CXXEXFLAGS) flags for c++
export
CXXUWFLAGS
+=
export
CXXEXFLAGS
+=
ifeq
($(strip $(PORT)),)
export
PORT
=
/dev/ttyUSB0
# use newLib nano-specs if 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
FFLAGS
=
$(
HEXFILE
)
export
DEBUGGER_FLAGS
=
$(
ELFFILE
)
# export board specific includes to the global includes-listing
export
INCLUDES
+=
-I
$(
RIOTBOARD
)
/
$(
BOARD
)
/include/
-I
$(
RIOTCPU
)
/
$(
CPU
)
/include
export
OFLAGS
=
-O
binary
export
UNDEF
+=
$(
BINDIR
)
cpu/startup.o
# unwanted (CXXUWFLAGS) and extra (CXXEXFLAGS) flags for c++
export
CXXUWFLAGS
+=
export
CXXEXFLAGS
+=
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