Skip to content
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

build system: clean up netif features #20700

Merged
merged 4 commits into from
Jun 3, 2024

Conversation

maribu
Copy link
Member

@maribu maribu commented May 27, 2024

Contribution description

  • If any netif_% (currently only netif_ethernet, but more are to come) is provided, the netif feature is implicitly provided
    • The explicit addition of the netif feature from boards that already provide netif_ethernet is dropped, consequently
  • Boards that previously provided esp_eth now instead provide periph_eth for consistancy
  • Boards that provided periph_eth no longer need to provide netif_ethernet
    • boards that have an external Ethernet MAC (such es w5100, w5500, enc28j60, encx24j600, etc.) would still need to provide netif_ethernet by hand
    • from all other boards, FEATURES_PROVIDED += netif_ethernet is dropped, relying on it being added implicitly

Testing procedure

This should not change any generated binaries.

Issues/PRs references

Follow up to #20694

@maribu maribu added Area: build system Area: Build system Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels May 27, 2024
@github-actions github-actions bot added Platform: native Platform: This PR/issue effects the native platform Area: boards Area: Board ports Platform: ESP Platform: This PR/issue effects ESP-based platforms Area: cpu Area: CPU/MCU ports labels May 27, 2024
@riot-ci
Copy link

riot-ci commented May 27, 2024

Murdock results

✔️ PASSED

47f52bd build system: provide netif_ethernet implicitly

Success Failures Total Runtime
10161 0 10161 17m:54s

Artifacts

@maribu maribu force-pushed the features/netif-cleanup branch 2 times, most recently from 48094c9 to b0465e2 Compare May 28, 2024 16:11
maribu added 2 commits May 28, 2024 20:53
In order to extend features based on provided features, we need to
check contents of `FEATURES_PROVIDED`.
If a board already provided a netif_% feature (currently only
netif_ethernet), the netif feature is automagically provided.
@maribu maribu force-pushed the features/netif-cleanup branch from b0465e2 to 6084727 Compare May 28, 2024 18:54
@github-actions github-actions bot added the Area: tools Area: Supplementary tools label May 28, 2024
Use periph_eth instead of esp_eth for the Ethernet peripheral on ESP
MCUs for consistency
@maribu maribu force-pushed the features/netif-cleanup branch from 6084727 to 53f952f Compare May 28, 2024 18:59
Copy link
Contributor

@mguetschow mguetschow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you! Just a minor documentation suggestion below.

dist/tools/buildsystem_sanity_check/check.sh Outdated Show resolved Hide resolved
@mguetschow mguetschow enabled auto-merge June 3, 2024 09:19
If there is an Ethernet peripheral (periph_eth feature provided), we
can conclude that an Ethernet network interface can be provided.

Co-authored-by: mguetschow <mikolai.guetschow@tu-dresden.de>
@maribu maribu force-pushed the features/netif-cleanup branch from 0ec4a93 to 47f52bd Compare June 3, 2024 10:25
@mguetschow mguetschow added this pull request to the merge queue Jun 3, 2024
Merged via the queue into RIOT-OS:master with commit 2576649 Jun 3, 2024
25 checks passed
@maribu maribu deleted the features/netif-cleanup branch June 3, 2024 20:42
@maribu
Copy link
Member Author

maribu commented Jun 3, 2024

Thanks :)

@mguetschow mguetschow added this to the Release 2024.07 milestone Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: boards Area: Board ports Area: build system Area: Build system Area: cpu Area: CPU/MCU ports Area: tools Area: Supplementary tools CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ESP Platform: This PR/issue effects ESP-based platforms Platform: native Platform: This PR/issue effects the native platform Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants