On 18/09/20 22:47, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Hi,
>
> Here is a series of patches to convert the remaining Makefile in
> pc-bios/ to meson. I have done various tests to check that the
> resulting binaries are working as expected, but I didn't cover it
> all, and I am not sure the test su= ite covers them all either.
I don't know, the way pc-bios/ works seems just wrong to me. pc-bios
should IMO be its own build system with support for docker-based cross
compilers similar to tests/tcg.
It could still use meson to build the binaries though (like we did for qboot). It's more about setting up the environment for the build to compile for the target.
In fact one thing I was considering before falling in love with Meson :)
was to write a simple meta-build-system for all of QEMU-owned ROMs,
submodules such as SLOF and tests/tcg. I never even got to the
whiteboard phase, but if this were done, we could just build all the
firmwares as a Meson 0.56 "external project"[1].
Paolo
[1] https://github.com/mesonbuild/meson/commit/master#diff-3a49da052fafbb502673f20d188644e1
fwiw, this version doesn't compile with gcc 4.8 (on centos6, as patchew found out). I couldn't find a workaround yet. :(