Replies: 5 comments 6 replies
-
I fully support this. Tagging @mbolivar-nordic |
Beta Was this translation helpful? Give feedback.
-
let take the open-amp lib example. In west .yml the open-amp is listed as a zephyr module: https://github.com/zephyrproject-rtos/zephyr/blob/main/west.yml#L195-L197
The point is that there is no delta between the copy and the original. So, instead of making a copy for each version of openamp, it would be better to get the code directly from the https://github.com/OpenAMP/open-amp when the zephyr project is set and/or build. |
Beta Was this translation helpful? Give feedback.
-
Hi @mbolivar-nordic it is working fine but if someone want to update for instan the the https://github.com/OpenAMP/open-amp repo, he/she still need to fork the zephyrproject-rtos/open-amp and zephyrproject-rtos/libmetal repos in addition of the zephyr repo So I would like investigate the possibility of suppressing zephyrproject-rtoss/open-amp and zephyrproject-rtos/libmetal repos. The idea would be to create for instance an openamp folder in https://github.com/zephyrproject-rtos/zephyr/tree/main/modules that would contains the https://github.com/zephyrproject-rtos/open-amp/blob/master/CMakeLists.txt and https://github.com/zephyrproject-rtos/zephyr/blob/main/modules/Kconfig.open-amp And then directly declare the https://github.com/OpenAMP/open-amp in west.yml. Is it something that would be acceptable and feasible from you point of view? To be honest I tried to prototype it but I'm facing issue saying:
Thanks in advance for your feedback! |
Beta Was this translation helpful? Give feedback.
-
tagging @stephanosio because this topic was discussed on another story |
Beta Was this translation helpful? Give feedback.
-
Associated issue raised in OpenAMP: OpenAMP/open-amp#434 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Some modules such as open-amp and libmetal are a simple fork of the original project with a adaptation glue for Zephyr.
Instead of making a copy/past/clean it seems interesting to be able to directly import the libraries, for instance using
git submodule
mechanism.For instance in https://github.com/zephyrproject-rtos/open-amp, on each open-amp release, the code is copied from https://github.com/OpenAMP/open-amp in the open-amp folder after documentation and test clean-up.
In a basic repository adding a
.gitmodules
should do the job:But Seems more tricky using west for the management of a zephyr module.
So any advice would be welcome!
Thanks in advances
Beta Was this translation helpful? Give feedback.
All reactions