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
7035a6d1
Commit
7035a6d1
authored
11 years ago
by
Martine Lenders
Browse files
Options
Downloads
Plain Diff
Merge pull request #601 from LudwigOrtmann/valgrind_target
valgrind target for native
parents
2c008aa0
0ee91da4
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/native/Makefile.include
+26
-14
26 additions, 14 deletions
boards/native/Makefile.include
with
26 additions
and
14 deletions
boards/native/Makefile.include
+
26
−
14
View file @
7035a6d1
export
INCLUDES
+=
-I
$(
RIOTBOARD
)
/
$(
BOARD
)
/include
export
INCLUDES
+=
-I
$(
RIOTBOARD
)
/
$(
BOARD
)
/include
export
CPU
=
native
export
CPU
=
native
export
ELF
=
$(
BINDIR
)$(
PROJECT
)
.elf
# toolchain
config
# toolchain
:
export
PREFIX
=
export
PREFIX
=
#
export CC = $(PREFIX)gcc
export
CC
?
=
$(
PREFIX
)
gcc
export
AR
=
$(
PREFIX
)
ar
export
AR
=
$(
PREFIX
)
ar
export
CFLAGS
+=
-std
=
gnu99
-Wall
-Wextra
-pedantic
-m32
export
ASFLAGS
=
export
AS
=
$(
PREFIX
)
as
export
AS
=
$(
PREFIX
)
as
export
LINK
=
$(
PREFIX
)
gcc
export
LINK
=
$(
PREFIX
)
gcc
export
SIZE
=
$(
PREFIX
)
size
export
SIZE
=
$(
PREFIX
)
size
export
OBJCOPY
=
$(
PREFIX
)
objcopy
export
OBJCOPY
=
$(
PREFIX
)
objcopy
LINKFLAGS
+=
-m32
-gc
-ldl
export
DEBUGGER
=
gdb
export
TERMPROG
=
$(
ELF
)
export
FLASHER
=
true
export
VALGRIND
?=
valgrind
TERMPROG
=
$(
BINDIR
)
/
$(
PROJECT
)
.elf
# flags:
FLASHER
=
true
export
CFLAGS
+=
-std
=
gnu99
-Wall
-Wextra
-pedantic
-m32
export
LINKFLAGS
+=
-m32
-gc
-ldl
export
ASFLAGS
=
export
DEBUGGER_FLAGS
=
$(
ELF
)
export
VALGRIND_FLAGS
?=
--track-origins
=
yes
all-valgrind
:
export CFLAGS += -DHAVE_VALGRIND_VALGRIND_H -g
ifneq
(,$(findstring nativenet,$(USEMODULE)))
ifneq
(,$(findstring nativenet,$(USEMODULE)))
ifeq
($(strip $(PORT)),)
export
PORT
?=
tap0
export
PORT
=
tap0
endif
else
else
export
PORT
=
export
PORT
=
endif
endif
DEBUGGER
=
gdb
all
:
#
do not override first target
DEBUGGER_FLAGS
=
$(
BINDIR
)$(
PROJECT
)
.elf
all-valgrind
:
all
valgrind
:
# use this if you want to attach gdb from valgrind:
# echo 0 > /proc/sys/kernel/yama/ptrace_scope
# VALGRIND_FLAGS += --db-attach=yes
$(VALGRIND)
$(VALGRIND_FLAGS)
$(ELF)
$(PORT)
include
$(RIOTBOARD)/$(BOARD)/Makefile.dep
include
$(RIOTBOARD)/$(BOARD)/Makefile.dep
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