From nobody Sat Nov 2 12:29:36 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1490602138533123.12868000758158; Mon, 27 Mar 2017 01:08:58 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id BB5AD2007D1F6; Mon, 27 Mar 2017 01:08:54 -0700 (PDT) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D066621BC6A7F for ; Mon, 27 Mar 2017 01:08:53 -0700 (PDT) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2017 01:08:53 -0700 Received: from junghyun-mobl.amr.corp.intel.com (HELO jljusten-skl.amr.corp.intel.com) ([10.252.131.12]) by fmsmga005.fm.intel.com with ESMTP; 27 Mar 2017 01:08:51 -0700 X-Original-To: edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490602133; x=1522138133; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=m41ijY/6IIXwba/baponEMPF3supTeYe7yj8EhU1iqU=; b=Jnrtg1civMjyPKee3HufuYF+25dr+cMt5PlRpnDCX4Yzo0tRBg0GetJR +5dlcLYRtfvMQDY4DD2CeMfh7mduwA==; X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,229,1486454400"; d="scan'208";a="80948324" From: Jordan Justen To: edk2-devel@lists.01.org Date: Mon, 27 Mar 2017 01:05:33 -0700 Message-Id: <20170327080544.24748-2-jordan.l.justen@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170327080544.24748-1-jordan.l.justen@intel.com> References: <20170327080544.24748-1-jordan.l.justen@intel.com> Subject: [edk2] [PATCH 01/12] OvmfPkg/build.sh: Add support for --disable-flash switch X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jordan Justen , Laszlo Ersek MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" This is mainly useful to test the boot paths when flash hasn't been enabled. Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen --- OvmfPkg/build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh index 6821552025..7294198e2c 100755 --- a/OvmfPkg/build.sh +++ b/OvmfPkg/build.sh @@ -50,6 +50,7 @@ THREADNUMBER=3D1 LAST_ARG=3D RUN_QEMU=3Dno ENABLE_FLASH=3Dno +DISABLE_FLASH=3Dno =20 # # Pick a default tool type for a given OS @@ -127,6 +128,9 @@ do shift break ;; + --disable-flash) + DISABLE_FLASH=3Dyes + ;; --enable-flash) ENABLE_FLASH=3Dyes ;; @@ -228,7 +232,9 @@ if [[ "$RUN_QEMU" =3D=3D "yes" ]]; then awk '{print $2}') case $qemu_version in 1.[6-9].*|1.[1-9][0-9].*|2.*.*) - ENABLE_FLASH=3Dyes + if [[ "$DISABLE_FLASH" !=3D "yes" ]]; then + ENABLE_FLASH=3Dyes + fi ;; esac =20 @@ -283,7 +289,7 @@ if [[ "$RUN_QEMU" =3D=3D "yes" ]]; then if [[ "$ENABLE_FLASH" =3D=3D "yes" ]]; then QEMU_COMMAND=3D"$QEMU_COMMAND -pflash $QEMU_FIRMWARE_DIR/bios.bin" else - QEMU_COMMAND=3D"$QEMU_COMMAND -L $QEMU_FIRMWARE_DIR" + QEMU_COMMAND=3D"$QEMU_COMMAND -L $QEMU_FIRMWARE_DIR -bios $QEMU_FIRMWA= RE_DIR/bios.bin" fi if [[ "$ADD_QEMU_HDA" =3D=3D "yes" ]]; then QEMU_COMMAND=3D"$QEMU_COMMAND -hda fat:$BUILD_ROOT_ARCH" --=20 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel