netdev: make netdev_% variants a submodule#13565
Conversation
benpicco
left a comment
There was a problem hiding this comment.
Nice cleanup, no functional changes.
b8ae78f to
1652bd3
Compare
|
There was a whitespace. I fixed it and amended directly. |
|
something broke ;-) |
|
I moved |
9400ce3 to
da1c9f1
Compare
miri64
left a comment
There was a problem hiding this comment.
I moved
netdev_tapto thenetdevfolder. It should work now.
Waitwaitwaitwait. That doesn't make sense at all! netdev_tap is not a submodule of netdev, it is a device driver. And it only works for native, so it should stay there.
| USEMODULE += netif | ||
| endif | ||
|
|
||
| ifneq (,$(filter netdev_%,$(USEMODULE))) |
There was a problem hiding this comment.
I would keep this line anyway. In worst case it doesn't compile any module, but I plan to add some common helpers for netdev that might be used by netdev_tap too.
makefiles/pseudomodules.inc.mk
Outdated
| PSEUDOMODULES += mpu_stack_guard | ||
| PSEUDOMODULES += nanocoap_% | ||
| PSEUDOMODULES += netdev_default | ||
| PSEUDOMODULES += netdev_% |
There was a problem hiding this comment.
... this line are the actual problem. They are just declaring everything starting with netdev_ a submodule of netdev. However, netdev_tap is not. It's just a netdev simulator using the hosts TAP interface (where the name is basically coming from). I would prefer, to either name the submodules explicitly, or do it in a similar way that I already tried in #10970 (this tackles a complete different problem that is disjunct of this).
da1c9f1 to
1549fe7
Compare
|
I just added it to the "NO_PSEUDOMODULES" list and amended directly. I removed the |
|
It seems that there's consensus on this one. Just need a rebase! |
|
ping @jia200x, please rebase! |
|
ping @jia200x, please rebase. Just thinking of the |
Yes! Definitely. The |
1549fe7 to
413ffbb
Compare
|
I changed the logic a little bit. I'm not touching |
|
I piggybacked the fix here |
c50a081 to
ad61f28
Compare
ad61f28 to
8289612
Compare
|
I refreshed the labels. It should be green soon :) |
|
thanks for the review! |
Contribution description
This PR makes
netdeva module and addnetdev_%variants as submodules.This should help to add new netdev components (
netdev_lora?) and helpers associated tonetdev(and not a variant)Testing procedure
Try compiling
gnrc_networkingfornativeand any IEEE802.15.4 board likesamr21-xproIssues/PRs references
#13562