-
Notifications
You must be signed in to change notification settings - Fork 2.1k
boards/kw41z: phynode-kw41z now also use the kw41z common Makefile.include #11618
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
Conversation
usb-kw41z and frdm-kw41z are affected by this change.
|
Ohh, I see the pattern I do not like either :D (it is not specific to here but in general). It is using the common but again not entirely again. And in practice I like having the I think that somehow none of the Would changing to a And going like this, even maybe boards should define |
The use of
I see your point but I'm not sure this should be discussed here.
I'm not sure what would be the impact in term of code size, while I see the benefits in terms of flexibility. The problem is also that several boards are using the board_init function already, so it will end up in code duplication (several time the same main board_init function instead of only one implemented in one place). |
Currently it also says "use But it is a different question/topic that touches the way to define boards and common boards in the C part.
Indeed it is not the place to discuss it, it was to ask some more background and see long term alternatives.
It would still be implemented in one place but would be one more function call |
|
Right now, all the As So it makes sense. I will do a comparison of the |
|
I get the same output for the variables with |
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.
ACK. I get the same variables values with and without this pull request.
From a build system integration, I find it better that if a boards uses a common boards, it must include all the files .dep|.include|.features which otherwise leads to not understanding what means a common board.
|
Thanks :) |
Contribution description
fixes #11616
In #11044 the phynode-kw41z was not updated to make use the common kw41z Makefile.include because it was not sharing the same debug adapter (dap instead of jlink) and not using the same
board_initfunction (in board.c).After #11616 was opened, I thought it would make more sense to explicitly move the
USEMODULE += boards_common_kw41zin the boards that use it instead of using it by default in the common part. This simplify reuse of the common Makefile.include.Now
phynode-kw41zalso uses the common Makefile.include and still doesn't depend onboards_common_kw41zsince it provides its ownboard_initfunction.Testing procedure
Normally, we should test that flashing still works on
phynode-kw41zboards.For the rest, a green Murdock should be ok.
Issues/PRs references
fixes #11616, follow-up of #11044