summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2019-11-08 12:45:31 +0100
committerThomas Huth2019-11-11 14:35:41 +0100
commit623ef637a2e42e023e7436d4bfbdc5159fb36684 (patch)
tree8e1000325dbdcb48cc4283855ede8ab715707b1a /configure
parentconfigure: Only decompress EDK2 blobs for X86/ARM targets (diff)
downloadqemu-623ef637a2e42e023e7436d4bfbdc5159fb36684.tar.gz
qemu-623ef637a2e42e023e7436d4bfbdc5159fb36684.tar.xz
qemu-623ef637a2e42e023e7436d4bfbdc5159fb36684.zip
configure: Check bzip2 is available
The bzip2 tool is not included in default installations. On freshly installed systems, ./configure succeeds but 'make' might fail later: BUNZIP2 pc-bios/edk2-i386-secure-code.fd.bz2 /bin/sh: bzip2: command not found make: *** [Makefile:305: pc-bios/edk2-i386-secure-code.fd] Error 127 make: *** Deleting file 'pc-bios/edk2-i386-secure-code.fd' make: *** Waiting for unfinished jobs.... Add a check in ./configure to warn the user if bzip2 is missing. See also: 536d2173b2b ("roms: build edk2 firmware binaries ...") Reported-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20191108114531.21518-3-philmd@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Luc Michel <luc.michel@greensocs.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 9b322284c3..6099be1d84 100755
--- a/configure
+++ b/configure
@@ -2154,6 +2154,10 @@ for target in $target_list; do
;;
esac
done
+# The EDK2 binaries are compressed with bzip2
+if test "$edk2_blobs" = "yes" && ! has bzip2; then
+ error_exit "The bzip2 program is required for building QEMU"
+fi
feature_not_found() {
feature=$1