[riot-devel] Discussion of Power Management

Kaspar Schleiser kaspar at schleiser.de
Thu Aug 31 17:42:10 CEST 2017


Hi,

On 08/31/2017 05:13 PM, Robert Hartung wrote:
>>     SRC := $(pm_fallback.c,$(wildcard *.c))
>>   to drivers/periph_common/Makefile
>>
>> - add "PSEUDOMODULES += periph_common_%" to makefiles/pseudomodules.mk
>>
>> That would compile pm_fallback *only* if periph_common_pm_fallback is
>> selected. (with #5757, all periph files will become submodules...)
> 
> This does not work for me, should it be
> SRC := $(filter-out pm_fallback.c,$(wildcard *.c))
> ?

Ah, yes.

> 
> In any case, if I added USE_MODULES += periph_common_pm_fallback, it
> will not get compiled. Any idea why?

Did you use "USEMODULE" instead of "USE_MODULES"?
Maybe the periph_common directory doesn't get selected. But we can't
make periph_common_pm_fallback depend on periph_common, that might have
side effects.

How about drivers/pm_fallback/... for now?

Kaspar


More information about the devel mailing list