From nobody Thu Nov 13 23:21:07 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=1583316422; cv=none; d=zohomail.com; s=zohoarc; b=Z+GpfhSGsN3m1VjAUnGXnEmIHPqV+oCAxkur6QkHwAkfWt76ytwDUBUCxVOrDqxciUHEa8lWxyDg88AvX89I0tCJrzSzb/jkyrsycb37kj/vGJClidbXZIHLPUlKy7MR5xc1RgMd2rk0tt0AdM5KdmXIdfJVcbZiJFyudpHst8s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583316422; 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=8IoRhGZ2eqfxiUMqD1IQ15ijzzrrTQ6InFUO0k6F5mQ=; b=Fy0Xp6oaE2Rsndnhmq3WGKvGby3Y1PlEpD+9iRctlrVdnGNDN9LdevdQPZ38tKXtqO9bPg6snI4/p1SFiehAR2nHdt6ydNWDuCZlMqFJnsPu2TcOdBD7qyAkUZT7esTQby8ydq7kDATDHxuMSmbEv5KqQgS1OYz2yF4UmkulVwc= 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 1583316422115104.75530430925551; Wed, 4 Mar 2020 02:07:02 -0800 (PST) Received: from localhost ([::1]:60062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9Qvd-0006fy-2L for importer@patchew.org; Wed, 04 Mar 2020 05:07:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41770) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9Qqv-000722-FI for qemu-devel@nongnu.org; Wed, 04 Mar 2020 05:02:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9Qqt-0000nh-K7 for qemu-devel@nongnu.org; Wed, 04 Mar 2020 05:02:09 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:41739) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9Qqt-0000ky-D1 for qemu-devel@nongnu.org; Wed, 04 Mar 2020 05:02:07 -0500 Received: by mail-wr1-x42d.google.com with SMTP id v4so1590811wrs.8 for ; Wed, 04 Mar 2020 02:02:07 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id m3sm18662148wrx.9.2020.03.04.02.01.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2020 02:02:00 -0800 (PST) Received: from zen.home.arpa (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 829231FF96; Wed, 4 Mar 2020 10:01:55 +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=8IoRhGZ2eqfxiUMqD1IQ15ijzzrrTQ6InFUO0k6F5mQ=; b=EneEo4fGMDkOTBs22ZPqJkV3yB3aP3Dar/OaTM1KeR4fv+dhkcOnLzAC4MhDP8D0YO z2uZm/t3tQplRy9LrQvUbS2XXbGZPG0E69XLbnYfeuyBswjKiZEjoioHJIyQq/xygfv1 G2VXdKKKQP1o5Hi7ia9dRhN0ItdyAXSPTP7M+JbKyJHPCRKVVh6AzNwBX6Dn8Xo3sTlO JwaHnnIn1/Y5mTg0kr8uYLUPlzroJnaHqZu9u1CfyRLCma8TjFVDjX7siiMg4SLDZw1b Bp79kyPESbaQx+HMNl5PvAhaGs+KdFGVE0WU6ruv4LmQM0sJdrkuaX0izy1N2p/vmbW3 E3yA== 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=8IoRhGZ2eqfxiUMqD1IQ15ijzzrrTQ6InFUO0k6F5mQ=; b=PARHUXyva95PvEy9uwCMT2PA/Hq6dUAmqJUwaL9PsI4OyE3fGF1V9lNRg2w67qNXPt NUliGwjVnpZRyy07bTYSFnDW/3atcs2iCJ1CcQM2qAriG57SWma7civK1b2B+mOcVHWh qkIgzhK4mHqZR5zMMrfopvKtEkC4UnI94qT+8pQjZRqlAP6PNBRS+qLllDeqbpO3CvpC kg2DsWz5vrpGkBpHgOMtkEJS8hgCZuQ+DDADComZJbAw7QLOQuRx58TLSoFu17lm9UHW EcpbpZaHN3bJ2lMamuc4Pih0auklP7uC1MWLyl7AZcKSppdF/BRKVTtG+wbtNjI1w2bH iQ9g== X-Gm-Message-State: ANhLgQ3w0TQDm8DRPCKDha5dpBlWmty57qsltIxqR2jeKrJ6DhVuBgBZ 8iL3+fVVIYXZS5DEM/5/vwkhzQ== X-Google-Smtp-Source: ADFU+vvflvPEU8+Ozi63zSAtlB9jgPVcuQl5JRjq8igDUu7n3kMbOhAfgNekFdXzoVETW+r0VaogLQ== X-Received: by 2002:a5d:4d48:: with SMTP id a8mr3255313wru.35.1583316126338; Wed, 04 Mar 2020 02:02:06 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 7/9] configure: detect and report genisoimage Date: Wed, 4 Mar 2020 10:01:52 +0000 Message-Id: <20200304100154.14822-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200304100154.14822-1-alex.bennee@linaro.org> References: <20200304100154.14822-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::42d 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 , Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= 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 Message-Id: <20200303150622.20133-8-alex.bennee@linaro.org> 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