From patchwork Thu Jul 28 10:50:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 9251107 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4385160757 for ; Thu, 28 Jul 2016 11:18:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33B88271BC for ; Thu, 28 Jul 2016 11:18:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27DDF276AE; Thu, 28 Jul 2016 11:18:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0E205271BC for ; Thu, 28 Jul 2016 11:18:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSjIY-0001kZ-H1; Thu, 28 Jul 2016 11:16:18 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSjIW-0001kS-Tk for xen-devel@lists.xen.org; Thu, 28 Jul 2016 11:16:17 +0000 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id B0/36-05127-089E9975; Thu, 28 Jul 2016 11:16:16 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjkeJIrShJLcpLzFFi42JxWrohUrf+5cx wg7nbTSyWfFzM4sDocXT3b6YAxijWzLyk/IoE1oxlG/4wFXSLVny+95ipgXGyYBcjJ4eEgL/E qjuLWEBsNgEDiRXTrzKC2CICshKru+awdzFycDALlEscPaYLYgoLBEt8XiIMUsEioCrx98UlV hCbV8Be4ufOM4wQE+UkGs7fZwaxOYHiKw/fZwexhQTsJA5tXMgMYatJ3Fi4jAWiV1Di5MwnYD azgITEwRcvmEFWSQhwS/zttp/AyDcLSdUsJFULGJlWMWoUpxaVpRbpGlnqJRVlpmeU5CZm5ug aGpjq5aYWFyemp+YkJhXrJefnbmIEhlM9AwPjDsbLW/wOMUpyMCmJ8oaFzgwX4kvKT6nMSCzO iC8qzUktPsQow8GhJMEr8AIoJ1iUmp5akZaZAwxsmLQEB4+SCO/j50Bp3uKCxNzizHSI1ClGR SlxXnmQPgGQREZpHlwbLJouMcpKCfMyMjAwCPEUpBblZpagyr9iFOdgVBLmfQ8yniczrwRu+i ugxUxAi4tjZ4AsLklESEk1MPYcSF7KahEiq7NkmpinYfrJK3O+SR5rOr7u2WGbm6cKTjrPPjI jL6oj7bC4qGKZe176bckPi0JVw5ke5K2dUnytYefBCxNS+VxfeutvELcPnV3jcEiXp5o3z/6E /2Spp86Rgf3PXpeJbUt8Hn35fuz/kmW7rc83T/t2TVRsqaoMb+sKgXCfaCWW4oxEQy3mouJEA JIn5SShAgAA X-Env-Sender: prvs=0100a76d6=anthony.perard@citrix.com X-Msg-Ref: server-2.tower-206.messagelabs.com!1469704574!35779524!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 15049 invoked from network); 28 Jul 2016 11:16:15 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-2.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 28 Jul 2016 11:16:15 -0000 X-IronPort-AV: E=Sophos;i="5.28,433,1464652800"; d="scan'208";a="368933870" From: Anthony PERARD To: Date: Thu, 28 Jul 2016 11:50:12 +0100 Message-ID: <20160728105013.22310-15-anthony.perard@citrix.com> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160728105013.22310-1-anthony.perard@citrix.com> References: <20160728105013.22310-1-anthony.perard@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Anthony PERARD , Wei Liu , Ian Jackson Subject: [Xen-devel] [PATCH v7 14/15] configure: do not depend on SEABIOS_PATH or OVMF_PATH ... X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP ... to compile SeaBIOS and OVMF. Only depend on CONFIG_*. If --with-system-* configure option is used, then set *_CONFIG=n to not compile SEABIOS and OVMF. Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Wei Liu --- Please, run ./autogen.sh on this patch. No change in V5. Change in V4: - change subject prefix --- tools/configure.ac | 6 ++++-- tools/firmware/Makefile | 8 -------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/tools/configure.ac b/tools/configure.ac index af3b6e9..0229d44 100644 --- a/tools/configure.ac +++ b/tools/configure.ac @@ -214,12 +214,13 @@ AC_ARG_WITH([system-seabios], AS_HELP_STRING([--with-system-seabios@<:@=PATH@:>@], [Use system supplied seabios PATH instead of building and installing our own version]),[ + # Disable compilation of SeaBIOS. + seabios=n case $withval in no) seabios_path= ;; *) seabios_path=$withval ;; esac ],[]) -AC_SUBST(seabios_path) AC_DEFINE_UNQUOTED([SEABIOS_PATH], ["${seabios_path:-$XENFIRMWAREDIR/bios.bin}"], [SeaBIOS path]) @@ -228,12 +229,13 @@ AC_ARG_WITH([system-ovmf], AS_HELP_STRING([--with-system-ovmf@<:@=PATH@:>@], [Use system supplied OVMF PATH instead of building and installing our own version]),[ + # Disable compilation of OVMF. + ovmf=n case $withval in no) ovmf_path= ;; *) ovmf_path=$withval ;; esac ],[]) -AC_SUBST(ovmf_path) AC_DEFINE_UNQUOTED([OVMF_PATH], ["${ovmf_path:-$XENFIRMWAREDIR/ovmf.bin}"], [OVMF path]) diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile index 82b1f6b..cf09ad2 100644 --- a/tools/firmware/Makefile +++ b/tools/firmware/Makefile @@ -6,12 +6,8 @@ TARGET := hvmloader/hvmloader INST_DIR := $(DESTDIR)$(XENFIRMWAREDIR) SUBDIRS-y := -ifeq ($(OVMF_PATH),) SUBDIRS-$(CONFIG_OVMF) += ovmf-dir -endif -ifeq ($(SEABIOS_PATH),) SUBDIRS-$(CONFIG_SEABIOS) += seabios-dir -endif SUBDIRS-$(CONFIG_ROMBIOS) += rombios SUBDIRS-$(CONFIG_ROMBIOS) += vgabios SUBDIRS-$(CONFIG_ROMBIOS) += etherboot @@ -46,15 +42,11 @@ install: all [ -d $(INST_DIR) ] || $(INSTALL_DIR) $(INST_DIR) [ ! -e $(TARGET) ] || $(INSTALL_DATA) $(TARGET) $(INST_DIR) ifeq ($(CONFIG_SEABIOS),y) -ifeq ($(SEABIOS_PATH),) $(INSTALL_DATA) seabios-dir/out/bios.bin $(INST_DIR)/bios.bin endif -endif ifeq ($(CONFIG_OVMF),y) -ifeq ($(OVMF_PATH),) $(INSTALL_DATA) ovmf-dir/ovmf.bin $(INST_DIR)/ovmf.bin endif -endif .PHONY: clean clean: subdirs-clean