Re: Recursive checkout with West


Bolivar, Marti
 

"barry.solomon via Lists.Zephyrproject.Org"
<barry.solomon=dexcom.com@lists.zephyrproject.org> writes:

In case this is useful to anyone. I am doing a recursive checkout currently with a little bit of a hack. So I have a west file that just includes my project and the nordic NCS release. The NCS release has its own west.yml file that specifies the version of zephyr, mcuboot, and many more. To do the recursive part, I made a custom west command that is part of my project. So first I do init. This loads my project and NCS repo that contains the other west.yml file. The I run my west custom_update command instead of west update. My command modifies the config file .west to point to the NCS repo, and then the executes west update, which pulls in all the source specified by the other west.yml file. If you wanted to do multiple levels or recursion you could create multiple scripts or just make one complicated script.
Sounds like a fun hack. I wouldn't have thought of doing it like that!

I tried to use pyyaml includes (https://stackoverflow.com/a/9577670),
but couldn't get it to work.

Marti

Join users@lists.zephyrproject.org to automatically receive all group messages.