As we move towards providing packages for cartesi-machine-emulator for multiple platforms, we should make the job of package maintainers as easy as possible. One difficulty in building our emulator is its dependency on uarch.bin, which itself depends on a special toolchain we distribute inside a Docker image.
Instead of forcing package maintainers to deal with these issues, this PR introduces a new target, create-generated-files-patch that produces a patch add-generated-files.diff that, when applied to the source tree, introduces the files needed to build the emulator.
It also includes changes to CI that cause add-generated-files.diff file to be published as an artifact on tagged releases.
As we move towards providing packages for cartesi-machine-emulator for multiple platforms, we should make the job of package maintainers as easy as possible. One difficulty in building our emulator is its dependency on uarch.bin, which itself depends on a special toolchain we distribute inside a Docker image.
Instead of forcing package maintainers to deal with these issues, this PR introduces a new target, create-generated-files-patch that produces a patch add-generated-files.diff that, when applied to the source tree, introduces the files needed to build the emulator.
It also includes changes to CI that cause add-generated-files.diff file to be published as an artifact on tagged releases.