From patchwork Thu Jul 28 10:50:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony PERARD X-Patchwork-Id: 9251087 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 5AA206075F for ; Thu, 28 Jul 2016 10:54:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BD4D26785 for ; Thu, 28 Jul 2016 10:54:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4088726B4A; Thu, 28 Jul 2016 10:54:14 +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 CAE5326785 for ; Thu, 28 Jul 2016 10:54:11 +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 1bSitc-0007Bo-D1; Thu, 28 Jul 2016 10:50:32 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSitb-00079y-4R for xen-devel@lists.xen.org; Thu, 28 Jul 2016 10:50:31 +0000 Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id 71/CE-12874-673E9975; Thu, 28 Jul 2016 10:50:30 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNIsWRWlGSWpSXmKPExsXitHRDpG7Z45n hBluXMVos+biYxYHR4+ju30wBjFGsmXlJ+RUJrBmfzz1nLdjKVbHm9memBsZzHF2MnBwSAv4S Dbt/sYDYbAIGEiumX2UEsUUEZCVWd81h72Lk4GAWKJc4ekwXJCws4C7xes9CZhCbRUBV4uGsP 2A2r4CdxKbv5xkhRspJNJy/DxbnFLCXWHn4PjuILQRUc2gjRK+QgJrEjYXLWCB6BSVOznwCZj MLSEgcfPGCGWIOt8Tt01OZJzDyzUJSNgtJ2QJGplWM6sWpRWWpRbomeklFmekZJbmJmTm6hga mermpxcWJ6ak5iUnFesn5uZsYgQHFAAQ7GG/1OR9ilORgUhLlDQudGS7El5SfUpmRWJwRX1Sa k1p8iFGGg0NJgjfzEVBOsCg1PbUiLTMHGNowaQkOHiUR3m0gad7igsTc4sx0iNQpRl2OdXNvr GUSYsnLz0uVEuc1ASkSACnKKM2DGwGLs0uMslLCvIxARwnxFKQW5WaWoMq/YhTnYFQS5p0JMo UnM68EbtMroCOYgI4ojp0BckRJIkJKqoGxbYrK37wjnOLyTnIBaza2n0xu+Vqvv84v0pAh/8J q0cL8qlW9fEZ3Ekz+3Pqjpd10qfF3e9yjeYdc3u8+dMMy102R9cWT2vPrzNpN2G70/XNn4r64 O2ZOIZOZ/j/x4zfSemduPMTuuq/oY+Wx/w9sJlVf3t8+4/0Ht7msH3qWBQRW89qu/PxaiaU4I 9FQi7moOBEArGmw1q4CAAA= X-Env-Sender: prvs=0100a76d6=anthony.perard@citrix.com X-Msg-Ref: server-6.tower-206.messagelabs.com!1469703026!51531899!3 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 48742 invoked from network); 28 Jul 2016 10:50:29 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 28 Jul 2016 10:50:29 -0000 X-IronPort-AV: E=Sophos;i="5.28,433,1464652800"; d="scan'208";a="368929249" From: Anthony PERARD To: Date: Thu, 28 Jul 2016 11:50:01 +0100 Message-ID: <20160728105013.22310-4-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: MIA2 Cc: Anthony PERARD , Wei Liu , Ian Jackson Subject: [Xen-devel] [PATCH v7 03/15] configure: #define SEABIOS_PATH and 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 Those paths are to be used by libxl, in order to load the firmware in memory. If a system path is not defined via --with-system-seabios or --with-system-ovmf, then default to the Xen firmware directory. Signed-off-by: Anthony PERARD Reviewed-by: Konrad Rzeszutek Wilk Acked-by: Wei Liu --- Please, run ./autogen.sh on this patch. Change in V5: - rename seabios.bin to bios.bin. --- tools/configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/configure.ac b/tools/configure.ac index 87e14a8..af3b6e9 100644 --- a/tools/configure.ac +++ b/tools/configure.ac @@ -220,6 +220,9 @@ AC_ARG_WITH([system-seabios], esac ],[]) AC_SUBST(seabios_path) +AC_DEFINE_UNQUOTED([SEABIOS_PATH], + ["${seabios_path:-$XENFIRMWAREDIR/bios.bin}"], + [SeaBIOS path]) AC_ARG_WITH([system-ovmf], AS_HELP_STRING([--with-system-ovmf@<:@=PATH@:>@], @@ -231,6 +234,9 @@ AC_ARG_WITH([system-ovmf], esac ],[]) AC_SUBST(ovmf_path) +AC_DEFINE_UNQUOTED([OVMF_PATH], + ["${ovmf_path:-$XENFIRMWAREDIR/ovmf.bin}"], + [OVMF path]) AC_ARG_WITH([extra-qemuu-configure-args], AS_HELP_STRING([--with-extra-qemuu-configure-args@<:@="--ARG1 ..."@:>@],