Skip to content

Add template system for toolchain packages#150

Open
fhunleth wants to merge 5 commits into
mainfrom
template-ize
Open

Add template system for toolchain packages#150
fhunleth wants to merge 5 commits into
mainfrom
template-ize

Conversation

@fhunleth

Copy link
Copy Markdown
Member

The toolchains are all the same, so create their packages rather than
have n copies. This adds a Makefile to create the packages from a common
template. Since everything is in a template, there's no need to have
shared code in nerves_toolchain_ctng. This removes one dependency that
would force all Nerves systems to upgrade in lock step.

This also removes the back-and-forth between the Nerves tooling to
create the artifact. The code in Nerves was only the creation of the
tarball which was such a minimal part that replicating here instead of
calling the shared code simplifies everything. It also means that
building the artifact is a process of calling the build.sh script in
the base directory rather than running mix nerves.artifact.

fhunleth added 5 commits June 21, 2026 11:21
The toolchains are all the same, so create their packages rather than
have n copies. This adds a Makefile to create the packages from a common
template. Since everything is in a template, there's no need to have
shared code in nerves_toolchain_ctng. This removes one dependency that
would force all Nerves systems to upgrade in lock step.

This also removes the back-and-forth between the Nerves tooling to
create the artifact. The code in Nerves was only the creation of the
tarball which was such a minimal part that replicating here instead of
calling the shared code simplifies everything. It also means that
building the artifact is a process of calling the `build.sh` script in
the base directory rather than running `mix nerves.artifact`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant