From: Anthony PERARD Date: Wed, 7 Jul 2021 16:40:01 +0000 (+0100) Subject: automation: Check if ninja is available before building QEMU X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~346 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ed939ef084ada31ac5e3000c9526bc99b58136e7;p=xen.git automation: Check if ninja is available before building QEMU ninja is now required to build the latest version of QEMU, and not all distros have a suitable version. Skip the QEMU build when ninja is not available. Signed-off-by: Anthony PERARD Acked-by: Andrew Cooper --- diff --git a/automation/scripts/build b/automation/scripts/build index 46b6903d29..4a1161bb94 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -45,8 +45,9 @@ if ! test -z "$(ldd /bin/ls|grep musl|head -1)"; then cfgargs+=("--with-system-seabios=/bin/false") 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 +# Qemu requires Python 3.5 or later, and ninja +if ! type python3 || python3 -c "import sys; res = sys.version_info < (3, 5); exit(not(res))" \ + || ! type ninja; then cfgargs+=("--with-system-qemu=/bin/false") fi