Skip to content

Commit 623ef63

Browse files
philmdhuth
authored andcommitted
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: 536d217 ("roms: build edk2 firmware binaries ...") Reported-by: Thomas Huth <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Reviewed-by: Daniel P. Berrangé <[email protected]> Reviewed-by: Wainer dos Santos Moschetta <[email protected]> Reviewed-by: Laszlo Ersek <[email protected]> Reviewed-by: Luc Michel <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent 05dfa22 commit 623ef63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure

+4
Original file line numberDiff line numberDiff line change
@@ -2154,6 +2154,10 @@ for target in $target_list; do
21542154
;;
21552155
esac
21562156
done
2157+
# The EDK2 binaries are compressed with bzip2
2158+
if test "$edk2_blobs" = "yes" && ! has bzip2; then
2159+
error_exit "The bzip2 program is required for building QEMU"
2160+
fi
21572161

21582162
feature_not_found() {
21592163
feature=$1

0 commit comments

Comments
 (0)