-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
[DNM] modules: Add the Arduino Zephyr API #72993
Conversation
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
dc3138f
to
f53bb29
Compare
Add the Arduino Core API for zephyr as an optional module However, don't make the group as optional because it will make it an "inactive project" and so get ignored by west. This will in turn fail to recognise cmakelists and kconfig from the module leading to build failures. Signed-off-by: Dhruva Gole <d-gole@ti.com>
f53bb29
to
ba534c0
Compare
I don't know why it's not assigning any reviewers, hence tagging manually |
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.
Hi, I think there needs to be a maintainer entry for this module.
First of all, I think it's too early since there is no SPI implementation yet. Also, as I previously commented, I think there will be a need to discuss the GPL license. I think, ultimately, it will need to be agreed upon by TSC, but the PR needs to include the information necessary to make the problem known. |
Hi @soburi ,
Yes, I agree to those points, but as you can see in this PR I am not adding any code as such to upstream. This is just an effort to ensure that people are able to seamlessly pull in the arduino core module after they've cloned zephyr without having to dig around much or needing to make manual changes to the main yml file just to pull in the arduino module. I have referred to the Documentation here: https://docs.zephyrproject.org/latest/contribute/external.html#integration-as-optional-modules It states:
It was my understanding that the Arduino core API is one such optional project directly under zephyr and users of zephyr rtos should be made aware within optional.yml if atall they're interested to pull it in and use it (Ofcourse subject to limitations of whatever the project supports at that point of time) The other option is also this: https://docs.zephyrproject.org/latest/contribute/external.html#integration-as-external-modules If "as external modules" sounds better to everyone I am open to that as well, let me know. It is to be noted that
This too has been a long standing issue, and I get the part that integrating code in a single repo can be an issue, but in this PR I plan on bringing no such code directly inside zephyr-rtos anywhere. This is still completely external as a lib/module. What I should probably do now is create the issue as told in the documentation https://github.com/zephyrproject-rtos/zephyr/issues/new?assignees=&labels=RFC&template=007_ext-source.md&title= to get reviewed by the Technical Steering Committee (TSC) . |
Good catch, I think I am also missing the changes to be made in modules/ like Kconfig and CMakelists atleast (if I were to look at for eg. https://github.com/zephyrproject-rtos/zephyr/tree/main/modules/lz4 ) |
@DhruvaG2000 please follow the instructions here: https://docs.zephyrproject.org/latest/contribute/external.html although in this case it may be considered an "internal" project, but it still needs discussion in the TSC |
The premise of my opinion is that if we are going to merge features, they need to be easily available and useful enough for general users. It is true that the module is not part of the GPL, but the method of "downloading GPL part at the user's responsibility" is incomplete, and it is necessary to think about how to properly incorporate it into the module. Dialogue with TSC is necessary to resolve this issue, and it is best to start this dialogue early. I think it's great that you created this issue. I believe there are two issues that need to be resolved as soon as possible. I think these issues need to be discussed in parallel with licensing issues for the merge.
|
Any updates on this? I am using this for MicroBlocks support for Zephyr and would love to see it become an official module. @soburi SPI library support PR is open now: zephyrproject-rtos/gsoc-2022-arduino-core#103 . Please provide feedback |
Just to provide an update, SPI and all the other Arduino APIs required for MicroBlocks to work have been merged. |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
Add the Arduino Core API for zephyr as an optional module