-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Makefile.features: location is not relevant for all features #2967
Comments
Makefile.buildtests:225 and Makefile.include:287 are the relevant lines that pull in |
Ok great! :-) |
I found a problem with this solution: In Makefile.buildtests we don't know the CPU of a BOARD. So the BOARD's Makefile.features would need to CPU's Makefile.features. Does someone see a problem with that solution? |
@Kijewski, I didn't get your solution. Could you provide an example please? |
@Kijewski, ping! |
@Kijewski ping ping |
Pong, pong, pong.
Rationale: |
@Kijewski any news? |
Why was this marked as a known issue. Doesn't seem like a bug to me... |
While working on #6162 (Rust support) we stumbled upon this issue. The solution provided by @Kijewski seems to be reasonable. We tried to add a feature-flag for Rust support. Since the support depends on the cpu architecture, we added |
Hello? |
This is a bug, because edit a cpu's edit Makefile.features is currently not considered for "make info-boards-supported". |
Fixed by #7880. |
In #2918, we've observed that the features written in board/XXX/Makefile.features is not always related to the board but mainly to the cpu.
I think that two Makefile.features should exist. For instance,
boards/samr21-xpro/Makefile.features
andcpu/samd21/Makefile.features
Most of those features (below) depends on the cpu and not the board.
FEATURES_PROVIDED += transceiver
FEATURES_PROVIDED += periph_gpio
FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += cpp
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_i2c
FEATURES_PROVIDED += periph_rtc
FEATURES_PROVIDED += periph_rtt
FEATURES_PROVIDED += periph_cpuid
FEATURES_MCU_GROUP = cortex_m0
Then,
FEATURES_CONFLICT
will be added in one of the two files according to the reason of the conflict.The text was updated successfully, but these errors were encountered: