-
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
make: introduce netdev_default pseudomodule #5134
Conversation
Why the dependency to #4646? |
Because otherwise I would have to update it afterwards. ;-) |
btw. I'm not so sure if |
Maybe |
@OlegHahm Could you summarize the module's intended use? |
The idea is similar to |
Well, it's not necessarily bound to netdev2, either. (Actually, the Phytec transceiver is not yet netdev2.) In theory we could name it |
@@ -12,6 +12,31 @@ ifneq (,$(filter nhdp,$(USEMODULE))) | |||
USEMODULE += oonf_rfc5444 | |||
endif | |||
|
|||
ifneq (,$(filter gnrc_netif_default,$(USEMODULE))) | |||
USEMODULE += gnrc_netif | |||
USEMODULE += netif_default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably superfluous since the Makefile.dep
of the board is evaluated before the general Makefile.dep
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would vote for the Makefile.dep
to pull in the device on netif_default
, not gnrc_netif_default
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rephrase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E.g.
ifneq (,$(filter netif_default,$(USEMODULE)))
USEMODULE += at86rf231
endif
instead of
E.g.
ifneq (,$(filter gnrc_netif_default,$(USEMODULE)))
USEMODULE += at86rf231
endif
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(or instead of)
ifneq (,$(filter netif_default gnrc_netif_default,$(USEMODULE)))
USEMODULE += at86rf231
endif
as your fixes do, for that matter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! This is why it should not be removed, but the dependency of gnrc_netif_default
in boards/*/Makefile.dep
should be! :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But if include gnrc_netif_default
in my application's Makefile, the board wouldn't add the correct driver to the modules then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How would it know that it should?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarified offline. Now I see that it only is possible the way it is currently implemented.
|
(the mobile interface of GitHub is shitty btw. One wrong tab with the thumb and the PR is closed -.-) |
This should have been edited above, but somehow the mobile interface did not let it through either... So for clarity again: To me, |
For different reasons, but +1! |
Rebased to master after #4646 got merged and renamed to |
Tests seem to be working still, let's see what Murdock is saying. Please squash. |
Additionally the dependencies for GNRC specific modules are centralized in Makefile.dep.
Squashed |
You removed the |
And go. |
Additionally the dependencies for GNRC specific modules are centralized in Makefile.dep.
Depends on #4646.