QEMU upstream builds with warnings when libc is musl:
#warning redirecting incorrect #include <sys/signal.h> to <signal.h>
Disable -Werror by passing --disable-werror to the QEMUU config script
if libc is musl.
hvmloader doesn't build on musl systems today. Disable any guest
firmware build.
Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Acked-by: Wei Liu <wl@xen.org>
cfgargs+=("--disable-stubdom")
fi
+if ! test -z "$(ldd /bin/ls|grep musl|head -1)"; then
+ # disable --disable-werror for QEMUU when building with MUSL
+ cfgargs+=("--with-extra-qemuu-configure-args=\"--disable-werror\"")
+ # hvmloader doesn't build on MUSL systems
+ cfgargs+=("--disable-seabios")
+ cfgargs+=("--disable-rombios")
+fi
+
# Qemu requires Python 3.5 or later
if ! type python3 || python3 -c "import sys; res = sys.version_info < (3, 5); exit(not(res))"; then
cfgargs+=("--with-system-qemu=/bin/false")