fusesoc
fusesoc copied to clipboard
Check-out of remote cores on a per-repo basis ?
Hi
Is it possible to have fusesoc check-out remote cores without landing up with multiple copies of the same repository and version ?
Currently, fusesoc checks out a repository for every remote core even when their repo URL and version are exactly the same. I understand that fusesoc has been implemented with a 'one core per repo' perspective, but such an enhancement could save a lot of space, when a repository has multiple cores.
The behavior you're outlining is a good optimization, but it's currently not implemented. We'd appreciate a pull request, however!
Ok, I will look into this
The problem with this arises when you have multiple cores and e.g. want version 1.2 of one core and 4.1 of another. Then you need to do multiple checkouts anyway and keep track of which version that corresponds to a certain core. I don't think the complexity is worth the savings in disk space and downloads.
What you probably want to do instead in these cases is to add the repo as a library with fusesoc library add