feat(Makefile): Add fusesoc-core-file target; Fix release-artifacts.#324
feat(Makefile): Add fusesoc-core-file target; Fix release-artifacts.#324jjts merged 3 commits intoIObundle:mainfrom
fusesoc-core-file target; Fix release-artifacts.#324Conversation
Add 'fusesoc-core-file' target that allows exporting a single <corename>.core file with a provider url pointing to the releases page. When FuseSoC is run for this core, it will automatically download the sources from the provider url. Fix release-artifacts target to avoid including the 'fusesoc_exports' as a subdirectory inside the tar.gz file.
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new fusesoc-core-file target to generate a standalone .core file with a provider URL pointing to GitHub releases, allowing FuseSoC to automatically download sources. It also fixes the release-artifacts target to avoid including the fusesoc_exports directory as a subdirectory in the generated tar.gz files.
- Adds
fusesoc-core-filetarget to generate a.corefile with remote provider URL - Fixes tar command in
release-artifactsto properly archive contents without nesting directories - Updates
cleantarget to remove generated*.corefiles
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| define MULTILINE_TEXT | ||
| provider: | ||
| name: url | ||
| url: https://github.com/IObundle/iob-cache/releases/latest/download/$(CORE_NAME)_V$(VERSION).tar.gz |
There was a problem hiding this comment.
The GitHub repository URL is hardcoded as 'IObundle/iob-cache'. Consider extracting this as a variable (e.g., REPO_URL or GITHUB_REPO) to make the Makefile more reusable for other projects or repositories.
There was a problem hiding this comment.
The provider URL can remain hard-coded since all releases of the iob_cache core are in the iob-cache repository.
Remove comment about multiline string usage in Makefile.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Add 'fusesoc-core-file' target that allows exporting a single
<corename>.corefile with a provider URL pointing to the releases page. When FuseSoC is run for this core, it will automatically download the sources from the provider URL.This file can be submitted to https://github.com/fusesoc/fusesoc-cores repository.
Fix release-artifacts target to avoid including the 'fusesoc_exports' as a sub-directory inside the tar.gz file.