[riot-devel] Activation of modules by make command line

Joakim NohlgÄrd joakim.nohlgard at eistec.se
Thu Sep 6 10:44:18 CEST 2018


It should be possible in the current state if you give the modules as an
environment variable instead of on the command line. So:

USEMODULE='module_a module_b' make BOARD=asdf

/Joakim

Den tor 6 sep. 2018 10:33Gunar Schorcht <gunar at schorcht.net> skrev:

> Hi,
>
> It is often necessary to enable or disable various functions at
> compilation time, for example, to test dependencies. In RIOT, features
> are activated using the module concept:
>
>         USEMODULE + = feature
>
> I'm wondering whether there is a possibility to enable modules without
> changing the makefile when the make command is called, for example:
>
>         make BOARD=... USE_MODULES="sdcard_spi mrf24j40"
>
> I was looking through the documentation and the makefile structure for
> something like
>
>         USEMODULE += $(USE_MODULES)
>
> Did I miss something? If it is not possible, would it be worth to
> realize it?
>
> Regards
> Gunar
>
> --
> Wenn du laufen willst, lauf eine Meile. Wenn du ein neues Leben
> kennenlernen willst, dann lauf Marathon. (Emil Zatopek)
>
> _______________________________________________
> devel mailing list
> devel at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/devel/attachments/20180906/0b621683/attachment.html>


More information about the devel mailing list