1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

14 Commits

Author SHA1 Message Date
Leandro Lanzieri
e80bb4b3dc
makefile: add a check for real modules 2020-09-04 15:01:16 +02:00
Leandro Lanzieri
81cb769cad
makefiles: avoid building archives when compiling 2020-09-04 15:01:10 +02:00
Leandro Lanzieri
62b6e5e6ff makefiles/modules: Add note regarding 'IS_USED' macro. 2019-11-11 12:53:18 +01:00
Gaëtan Harter
e5278a2364
makefiles/modules.inc.mk: convert uppercase with utils function
Convert the module to uppercase using the 'makefiles/utils' function.
2019-09-30 17:02:12 +02:00
Gaëtan Harter
41d10cf005
makefiles: do not remove defines from CFLAGS
Do not remove the '-D' and '-U' values from CFLAGS.
This prevents issues where a '-D' could contain a space.

Some values way be duplicated from the 'riotbuild.h' header and the
command line but with the same value so without conflict.

To not put too many things in the command line, the -DMODULE_NAME are
only put in CFLAGS_WITH_MACROS.

Also, as now, the deferred value of CFLAGS is used for 'riotbuild.h',
macros set after the inclusion of `Makefile.include` will be taken into
account.
2019-09-27 19:29:06 +02:00
Gaëtan Harter
8d58e3bf91
makefiles/modules.inc.mk: refactor, do not overwrite NO_PSEUDOMODULES
Refactor to define REALMODULES incrementally without overwriting
'NO_PSEUDOMODULES'.

This also allows an external makefile to maybe add something there if it really
needs to.
2019-03-05 16:04:20 +01:00
Gaëtan Harter
5453523933
makefiles/modules.inc.mk: group CFLAGS handling
Put all lines related to CFLAGS handling together.
2019-03-05 15:57:18 +01:00
Gaëtan Harter
c2b1995af7
makefiles/modules.inc.mk: factorize in _ALLMODULES
Factorize the reused value in a private variable.

I define it private as somehow 'USEPKG' is supposed to be removed so the
variables can be removed later.
2019-03-05 15:54:05 +01:00
Gaëtan Harter
b6645b531b
makefiles/modules.inc.mk: do not export BASELIBS
BASELIBS is used only in the main Makefile.include or included files.
As it is not used in sub make executions or scripts it does not need to
be exported.
2019-03-05 15:52:38 +01:00
Gaëtan Harter
670a836863
makefiles/modules.inc.mk: do not export USEMODULE
USEMODULE is already exported by `makefiles/vars.inc.mk`.
2019-03-05 15:45:08 +01:00
Gaëtan Harter
e554a19756 makefiles/modules.inc.mk: remove deprecated FEATURE_PERIPH_ macros
`#ifdef FEATURE_PERIPH_NAME` usage should now be replaced by
`#ifdef MODULE_PERIPH_NAME`.

This deprecation was started by pull requests #8226 and #8227.
2018-01-18 09:24:17 +01:00
d69291c3a1 make: handle optional features in Makefile.dep 2017-11-06 12:01:19 +01:00
c348a89c91 make: add NO_PSEUDOMODULES variable 2017-11-06 12:01:01 +01:00
Joakim Nohlgård
339a4da9dc Makefiles: move to new directory /makefiles 2017-04-04 15:11:54 +02:00