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
af576097
Commit
af576097
authored
7 years ago
by
Martine Lenders
Committed by
kYc0o
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
newlib: use RIOT dependency system for _GNU_SOURCE instead
parent
79b34a72
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
Makefile.dep
+10
-0
10 additions, 0 deletions
Makefile.dep
makefiles/libc/newlib.mk
+4
-0
4 additions, 0 deletions
makefiles/libc/newlib.mk
makefiles/pseudomodules.inc.mk
+1
-0
1 addition, 0 deletions
makefiles/pseudomodules.inc.mk
with
15 additions
and
0 deletions
Makefile.dep
+
10
−
0
View file @
af576097
...
@@ -8,6 +8,12 @@ OLD_USEPKG := $(sort $(USEPKG))
...
@@ -8,6 +8,12 @@ OLD_USEPKG := $(sort $(USEPKG))
# pull dependencies from drivers
# pull dependencies from drivers
include
$(RIOTBASE)/drivers/Makefile.dep
include
$(RIOTBASE)/drivers/Makefile.dep
ifneq
(,$(filter cbor_ctime,$(USEMODULE)))
ifneq
(,$(filter newlib,$(USEMODULE)))
USEMODULE
+=
newlib_gnu_source
endif
endif
ifneq
(,$(filter csma_sender,$(USEMODULE)))
ifneq
(,$(filter csma_sender,$(USEMODULE)))
USEMODULE
+=
random
USEMODULE
+=
random
USEMODULE
+=
xtimer
USEMODULE
+=
xtimer
...
@@ -381,6 +387,10 @@ ifneq (,$(filter od,$(USEMODULE)))
...
@@ -381,6 +387,10 @@ ifneq (,$(filter od,$(USEMODULE)))
USEMODULE
+=
fmt
USEMODULE
+=
fmt
endif
endif
ifneq
(,$(filter newlib_gnu_source,$(USEMODULE)))
USEMODULE
+=
newlib
endif
ifneq
(,$(filter newlib_nano,$(USEMODULE)))
ifneq
(,$(filter newlib_nano,$(USEMODULE)))
USEMODULE
+=
newlib
USEMODULE
+=
newlib
endif
endif
...
...
This diff is collapsed.
Click to expand it.
makefiles/libc/newlib.mk
+
4
−
0
View file @
af576097
...
@@ -9,6 +9,10 @@ ifneq (,$(filter newlib_nano,$(USEMODULE)))
...
@@ -9,6 +9,10 @@ ifneq (,$(filter newlib_nano,$(USEMODULE)))
endif
endif
endif
endif
ifneq
(,$(filter newlib_gnu_source,$(USEMODULE)))
CFLAGS
+=
-D_GNU_SOURCE
=
1
endif
ifeq
(1,$(USE_NEWLIB_NANO))
ifeq
(1,$(USE_NEWLIB_NANO))
export
LINKFLAGS
+=
-specs
=
nano.specs
export
LINKFLAGS
+=
-specs
=
nano.specs
endif
endif
...
...
This diff is collapsed.
Click to expand it.
makefiles/pseudomodules.inc.mk
+
1
−
0
View file @
af576097
...
@@ -52,6 +52,7 @@ PSEUDOMODULES += netstats_l2
...
@@ -52,6 +52,7 @@ PSEUDOMODULES += netstats_l2
PSEUDOMODULES
+=
netstats_ipv6
PSEUDOMODULES
+=
netstats_ipv6
PSEUDOMODULES
+=
netstats_rpl
PSEUDOMODULES
+=
netstats_rpl
PSEUDOMODULES
+=
newlib
PSEUDOMODULES
+=
newlib
PSEUDOMODULES
+=
newlib_gnu_source
PSEUDOMODULES
+=
newlib_nano
PSEUDOMODULES
+=
newlib_nano
PSEUDOMODULES
+=
openthread
PSEUDOMODULES
+=
openthread
PSEUDOMODULES
+=
pktqueue
PSEUDOMODULES
+=
pktqueue
...
...
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