On 28/11/2022 19:25, Paolo Bonzini wrote:
Il lun 28 nov 2022, 18:04 Daniel P. Berrangé <berra...@redhat.com
<mailto:berra...@redhat.com>> ha scritto:
With my distro maintainer hat I would rather QEMU ship neither the
ROM source, nor the ROM binaries.
Annd since QEMU can finally cross compile its embedded firmware modules, too, it is
now easier for distros not to use any prebuilt binary.
However some firmware sources are only available from QEMU's submodules. So either we
distribute those submodules as separate tarballs, or distros would need to use the
bundled tarball as well.
Separately, I am not even sure what compiler is needed for the old Macintosh
ROMs...
Paolo
I can quickly summarise what is needed for the ROMs that I'm involved with:
- OpenBIOS is currently built using the builder docker image hosted at
https://github.com/openbios/openbios/pkgs/container/openbios-builder which is based
upon the kernel crosstool archives.
I initially tried using the QEMU docker cross-compilers, however whilst the builds
work the binaries generated would crash early for PPC/SPARC64. I suspect it's likely
because of specific patches applied by Debian or the options used for the build but
didn't really dig into it further.
- qemu_vga.ndrv is a tricky one: it's actually built by Metrowerks CodeWarrior
running in an OS 9 VM in QEMU!
There is a project called Retro68 (https://github.com/autc04/Retro68) which is a port
of gcc for 68k/ppc Macs which could potentially be used, however it would need
conversion of the driver from Metrowerks to gcc, and also likely require the use of
Apple's MPW headers which were free to distribute but whose copyright status is
currently undetermined.
ATB,
Mark.