Generalize atarist-toolkit-docker to support x86_64, Mac (arm64) and RPi (aarch64) #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Significant changes
I would love for you to add 3 docker's to your docker hub - one per Mac, x86 and Pi.
I am sure you have a Pi but if not I can contribute the images for that.
Even if you dont - the installation script tries to get image from you and builds if it cannot find it.
Provided the user has configured docker properly and is on an Intel, Mac or RPi then my extension to your excellent work seems to allow seamless build and deployment?
Details
I originally built a much later gcc cross compiler for the Pi - then I found Riviere also has aarch64 pre-build cross-mint-essential. So I generalized your docker toolkit. Provided it is ok to use "arch" to differentiate between Intel, RPi and Mac, and you are happy to build and store those images then users of common platforms can generate ST code easily.
I removed the "sed" stuff. Is it necessary if we label the dockers? There should be enough into from the target system as to which image they need.
I notice your agtools is build for aarch64 and x86_64. I tested with a friends Mac - that seems to be happy to run either binaries. I do not understand why you rebuild the sources from your agtools - you have already pre-built them in your bin tree right? In any case the rmac is no longer a gz. It is not a zip. My hope is you would pre-build those tools, drop them into your agtools => no need to build them as part of the docker build process?
If you wanted to move to later gcc's and you are happy to create some tar's then we could also move to https://github.com/freemint/m68k-atari-mint-gcc/tree/gcc-13-mintelf
I was in contact with Miro - he maintains this. Apparently one can use gdb with this via ELF. Could be kinky.