From nobody Thu Nov 13 23:32:44 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1583248157; cv=none; d=zohomail.com; s=zohoarc; b=S4to2VJU3etIADWsAEMBAlvkLOe1tw8hvzBzEiW5A8DScuGJWA+BvvSsDwb9MFBRhdVibw7AYMPVwrcF252ppR7gIxojI0gBbcAmVqALCasu6kLUDHt0WAwkVyXZ2WqTi1n115TYTg5fR3BAVYdYSswFz7M4/SxVYeA9ud+4gzY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583248157; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=T+UmvkcuJ29VTcRDaXTcG4zdKU9zWXLmw7iHIS3VZmQ=; b=h4v7sQ+zBE7RL/EisCYjkcij1sI+xRKEpdC5runozfGhOJt3XWzhYlzQYqB/hQZ/p28NCxaasQ8gQlmeObGlrBixBL8XpceimPaI3EKUZSlaAf0cZ+nb9sigfFZDHnTIiItHvH89uVx5y34ZFxnck0RA1+hWkQzMawn1sE1dOhE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1583248157233239.50170695815234; Tue, 3 Mar 2020 07:09:17 -0800 (PST) Received: from localhost ([::1]:48690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j99AZ-0008H7-LF for importer@patchew.org; Tue, 03 Mar 2020 10:09:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42633) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j997z-0003AP-FG for qemu-devel@nongnu.org; Tue, 03 Mar 2020 10:06:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j997y-0001l4-8p for qemu-devel@nongnu.org; Tue, 03 Mar 2020 10:06:35 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:51447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j997y-0001ku-2X for qemu-devel@nongnu.org; Tue, 03 Mar 2020 10:06:34 -0500 Received: by mail-wm1-x330.google.com with SMTP id a132so3628532wme.1 for ; Tue, 03 Mar 2020 07:06:34 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id k2sm2742354wrn.57.2020.03.03.07.06.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2020 07:06:29 -0800 (PST) Received: from zen.home.arpa (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id BDE731FF96; Tue, 3 Mar 2020 15:06:23 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=T+UmvkcuJ29VTcRDaXTcG4zdKU9zWXLmw7iHIS3VZmQ=; b=FV0fEUwROdajTV63RAMJFTV3YkHSn4tZjI5p5jhFFKGi3U+ymEyOxDVT9ez+iocjEO NBNiIWwtj/qIP8HenuK5Dmm4cK79Dj3Pi0M16MoKnzHpKMAKaxNqdIALK35AGMSphgZV 7K1Rfru+BeD/HrSBgDHZgBVHlm5zw1+ZZMmAsf79nRKQ7do/VjaroBu5jWORoSmb3UbN RKrWFSCMY06sNmMjcW4Pv17K5O3JFM7CqEvMeurruIXLdnDNmGDGNl4r/dLHQZg0h36U ZvFtVq2sGKvaXX/NRbF02MGGza5Vh8WnXZbu4zdhi0tdU8UllvwrD6nAamBBMZ5J9diK wM8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=T+UmvkcuJ29VTcRDaXTcG4zdKU9zWXLmw7iHIS3VZmQ=; b=lkePZmu/UtQ8DB8wMSY0iIx+2ZiMUHt6tL3YJNVNobGD1CpAC5o+OJycTKwVbuLw44 X9giTkb3p3vIhwqaFL/1Az6UC3SuPlgeVf+ogioA78w3GvKgRQSHmcjfr6Q1xO8vQX2o kwsmWCTXAVs2BUY7ngXMYy6YCW3z+VgyrEagytPk5OCdLfwpXzdUgyOduYmtbVfMNtyi f/OIqPyhBSyzkXmIPc0qEyZtjV6VYPx7Hs/AOugryd47j/KHTl+oxekbASEbjJlkk71Y AduxRpDvz391ePOwTNI2kYv35uO5UtwqC8c5Z+r/DRwKkceHxh64sxj9gelLd/VYyDru dYlg== X-Gm-Message-State: ANhLgQ3Aqk21IxwjUACnYCkdZ4wGYTOY+t5Eo7GLoLHHhN7w48ZMt3xr HNs7I+ohDp7hiJ8k1v7kTBbi5A== X-Google-Smtp-Source: ADFU+vucmtOB1DOyUA+ZfWws/AkC9jEPWl579nAtzPenSVnZOb+9OBkEF6lSBH5bc04C2dSzS5lMBw== X-Received: by 2002:a1c:3d46:: with SMTP id k67mr4991314wma.177.1583247992974; Tue, 03 Mar 2020 07:06:32 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v2 7/9] configure: detect and report genisoimage Date: Tue, 3 Mar 2020 15:06:20 +0000 Message-Id: <20200303150622.20133-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200303150622.20133-1-alex.bennee@linaro.org> References: <20200303150622.20133-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::330 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This is used for some of the vm-build tests so lets detect it and behave sanely when it is not installed. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Richard Henderson --- configure | 13 +++++++++++++ tests/vm/Makefile.include | 14 +++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 7b373bc0bb8..fab6281eb70 100755 --- a/configure +++ b/configure @@ -936,6 +936,17 @@ do fi done =20 +# Check for ancillary tools used in testing +genisoimage=3D +for binary in genisoimage +do + if has $binary + then + genisoimage=3D$(command -v "$binary") + break + fi +done + : ${smbd=3D${SMBD-/usr/sbin/smbd}} =20 # Default objcc to clang if available, otherwise use CC @@ -6567,6 +6578,7 @@ echo "python $python ($python_version)" if test "$docs" !=3D "no"; then echo "sphinx-build $sphinx_build" fi +echo "genisoimage $genisoimage" echo "slirp support $slirp $(echo_version $slirp $slirp_version)" if test "$slirp" !=3D "no" ; then echo "smbd $smbd" @@ -7616,6 +7628,7 @@ echo "INSTALL_PROG=3D$install -c -m 0755" >> $config_= host_mak echo "INSTALL_LIB=3D$install -c -m 0644" >> $config_host_mak echo "PYTHON=3D$python" >> $config_host_mak echo "SPHINX_BUILD=3D$sphinx_build" >> $config_host_mak +echo "GENISOIMAGE=3D$genisoimage" >> $config_host_mak echo "CC=3D$cc" >> $config_host_mak if $iasl -h > /dev/null 2>&1; then echo "IASL=3D$iasl" >> $config_host_mak diff --git a/tests/vm/Makefile.include b/tests/vm/Makefile.include index 778e5067554..1bf9693d195 100644 --- a/tests/vm/Makefile.include +++ b/tests/vm/Makefile.include @@ -2,7 +2,11 @@ =20 .PHONY: vm-build-all vm-clean-all =20 -IMAGES :=3D ubuntu.i386 freebsd netbsd openbsd centos fedora +IMAGES :=3D freebsd netbsd openbsd centos fedora +ifneq ($(GENISOIMAGE),) +IMAGES +=3D ubuntu.i386 centos +endif + IMAGES_DIR :=3D $(HOME)/.cache/qemu-vm/images IMAGE_FILES :=3D $(patsubst %, $(IMAGES_DIR)/%.img, $(IMAGES)) =20 @@ -12,12 +16,16 @@ IMAGE_FILES :=3D $(patsubst %, $(IMAGES_DIR)/%.img, $(I= MAGES)) vm-help vm-test: @echo "vm-help: Test QEMU in preconfigured virtual machines" @echo - @echo " vm-build-ubuntu.i386 - Build QEMU in ubuntu i386 VM" @echo " vm-build-freebsd - Build QEMU in FreeBSD VM" @echo " vm-build-netbsd - Build QEMU in NetBSD VM" @echo " vm-build-openbsd - Build QEMU in OpenBSD VM" - @echo " vm-build-centos - Build QEMU in CentOS VM, with = Docker" @echo " vm-build-fedora - Build QEMU in Fedora VM" +ifneq ($(GENISOIMAGE),) + @echo " vm-build-centos - Build QEMU in CentOS VM, with = Docker" + @echo " vm-build-ubuntu.i386 - Build QEMU in ubuntu i386 VM" +else + @echo " (install genisoimage to build centos/ubuntu images)" +endif @echo "" @echo " vm-build-all - Build QEMU in all VMs" @echo " vm-clean-all - Clean up VM images" --=20 2.20.1