cpu/make: added global Makefile.periph#5065
cpu/make: added global Makefile.periph#5065haukepetersen wants to merge 10 commits intoRIOT-OS:masterfrom
Conversation
|
What do you think about using the wildcard Makefile function in another way? # get a list with the peripherals, that are configured by the board
WANT = $(patsubst periph_%,%*.c,$(filter periph_%,$(FEATURES_PROVIDED)))
# only compile the peripheral drivers, that are present and configured
SRC += $(wildcard $(WANT))This would make a list of all wanted periph drivers just as before, but matching filenames against a wildcard pattern instead.
|
|
That would do, but I think it defeats the purpose. Let's take the |
|
@gebart ping |
|
I don't have any good ideas for the hwrng_* files on Kinetis... I propose we merge this as-is and open an issue for getting rid of the whole-file ifdefs as a reminder. What do you think? |
|
Sounds good to me. |
|
something is messed up, see CI logs, lots of periph tests are failing. |
|
I had this once before locally (but I can not explain it): it seems to me the Makefile.buildtest fucks up, it tries to build tests for boards, that do not provide the required features (e.g. CPUID for |
|
Also I have no idea why this behavior is caused by this PR, where it should actually be quite unrelated?! |
|
Just out of curiosity: restarted the build-test to see if the result is reproducible. |
|
I think I found the reason: by exporting the @Kijewski: can you help out here and tell me out to make this work? |
|
won't make it for this release, so postponing it. |
|
I guess we can postpone this another release |
223b0bb to
56a08f1
Compare
|
tried another path, but still not working. @kaspar030 feel free to take over... |
|
Needs rebase since #4699 was merged. |
|
I won't - as stated above, I can't find a solution that works to this topic, so others need to take over... |
|
Let's close it as nobody is working on it? |
|
ping what should we do here ? |
|
Thats the question :-) This topic is getting more and more pressing and needs to be solved ASAP with high priority, but for this somebody needs an idea how to do this... So would like to leave the PR open until something new is PRed so we keep this on our minds. |
|
closed in favor of #7241 |
So far, every c file in
RIOTBASE/CPU/periph/*.cis build. This leads to some not very nice use of file guards around full c files.This PR improves the situation, as now only the peripherals, that are configured by the board (using the
FEATURES_PROVIDEDvar) are actually compiled. This prevents us from having to configure certain peripherals for each board that uses a certain CPU, and from using those anti-pattern file guards.This PR is a somewhat simplified and limited version of #3420.