From nobody Mon Apr 29 11:34:12 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.zohomail.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 1499835964514388.49214412749507; Tue, 11 Jul 2017 22:06:04 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 6D75721D0B66E; Tue, 11 Jul 2017 22:04:14 -0700 (PDT) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 7AC5721D0B665 for ; Tue, 11 Jul 2017 22:04:13 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2017 22:05:46 -0700 Received: from shwdeopenpsi011.ccr.corp.intel.com (HELO SHWDEOPENPSI011.local) ([10.239.9.22]) by orsmga005.jf.intel.com with SMTP; 11 Jul 2017 22:05:45 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,347,1496127600"; d="scan'208";a="124089427" Date: Wen, 12 Jul 2017 13:05:45 +0800 From: lushifex To: edk2-devel@lists.01.org Message-ID: X-Mailer: TortoiseGit MIME-Version: 1.0 Subject: [edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Build Script. 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: , david.wei@intel.com 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" Change GCC build script. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lushifex --- BuildBIOS.sh | 28 ++++++++++++++++++- Platform/BroxtonPlatformPkg/BuildIFWI.sh | 46 ++++++++++------------------= ---- 2 files changed, 41 insertions(+), 33 deletions(-) diff --git a/BuildBIOS.sh b/BuildBIOS.sh index c241d87..552cf2d 100755 --- a/BuildBIOS.sh +++ b/BuildBIOS.sh @@ -10,6 +10,25 @@ # =20 ##********************************************************************** +## Function define +##********************************************************************** +function Usage () { + echo + echo "Script to build BIOS firmware and stitch the entire IFWI." + echo + echo "Usage: BuildBIOS.sh Build_Flags [PlatformName] Target_Flag" + echo + echo " Build_Flags: /A Set FabId to A (default= : FAB_B)" + echo " Build_Flags: /B Set FabId to B (default= : FAB_B)" + echo " PlatformName [optional]: Broxton " =20 + echo " Target_Flag: Release, Debug " + echo + echo "Press any key......" + read + exit 0 +} + +##********************************************************************** ## Initial Setup ##********************************************************************** =20 @@ -20,6 +39,13 @@ if [ "$1" =3D=3D "/?" ]; then Usage fi =20 +if [ "$1" =3D=3D "" ]; then + echo "Not Enough Arguments Provided" + echo "Please review the Help screen" + Usage +fi + + ## Build Flags for (( i=3D1; i<=3D$#; )) do @@ -56,5 +82,5 @@ export PACKAGES_PATH=3D$WORKSPACE:$WORKSPACE/Core:$WORKSP= ACE/Silicon/:$WORKSPACE/P =20 make -C BaseTools =20 -bash ./Platform/BroxtonPlatformPkg/BuildIFWI.sh $Build_Flags APLI $Target_= Flag +bash ./Platform/BroxtonPlatformPkg/BuildIFWI.sh $Build_Flags Broxton $Targ= et_Flag =20 diff --git a/Platform/BroxtonPlatformPkg/BuildIFWI.sh b/Platform/BroxtonPla= tformPkg/BuildIFWI.sh index 69ed67a..a315e0b 100755 --- a/Platform/BroxtonPlatformPkg/BuildIFWI.sh +++ b/Platform/BroxtonPlatformPkg/BuildIFWI.sh @@ -13,41 +13,16 @@ ##********************************************************************** ## Function define ##********************************************************************** -function Usage() { +function Usage () { echo echo "Script to build BIOS firmware and stitch the entire IFWI." echo - echo "Usage: BuildIFWI.bat [options] ^ ^ [I= FWI Suffix]" + echo "Usage: BuildIFWI.sh Build_Flags Platform_Type Build_Target" echo - echo " /? Display this help text = " - echo " /q Quiet mode. Only display Fatal Errors (slightly faste= r) " - echo " /l Log a copy of the build output to EDK2.log = " - echo " /c CleanAll before building = " - echo " /w Enabled WinDbg module for build = " - echo " /sv Build with SVBIOS flags enabled = " - echo " /ppv Build with PPV flags enabled = " - echo " /rvv Build with RVV BXTM flags enabled = " - echo " /rvvp Build with RVVP BXTP flags enabled = " - echo " /x64 Set Arch to X64 (default: IA32) = " - echo " /sata Enable SATA Build = " - echo " /pcie Enable PCIe Build = " - echo " /nG Not update GOP driver per StitchConfig (override src = version) " - echo " /uM Update Microcode per StitchConfig (override src vers= ion) " - echo - echo " Set ONLY ONE of the following: = " - echo " /vp Set special build flag for ALL Pre-Si = " - echo " /csle Set special build flag for C-SLE = " - echo - echo " Platform Types: $eNB_RVP $Phblt_RVP $Phblt_Die1_RVP $Embd_R= VP " - echo " APLK - Netbook/Desktop = " - echo " BXTM - Phablet build for BXT-A = " - echo " BXTM1 - Phablet build for BXT Die1(E0) = " - echo " APLI - Embedded/IVI build (IOTG) = " - echo - echo " Build Targets: Release, Debug = " - echo " IFWI Suffix: Suffix to append to end of IFWI filename = (default: MM_DD_YYYY) " - echo - echo " See Stitch/Stitch_Config.txt for additional stitching set= tings. " + echo " Build_Flags: /A Set FabId to A (default= : FAB_B)" + echo " Build_Flags: /B Set FabId to B (default= : FAB_B)" + echo " Platform_Type [optional]: Broxton " =20 + echo " Build_Target: Release, Debug " echo echo "Press any key......" read @@ -77,6 +52,12 @@ if [ "$1" =3D=3D "/?" ]; then Usage fi =20 +if [ "$1" =3D=3D "" ]; then + echo "Not Enough Arguments Provided" + echo "Please review the Help screen" + Usage +fi + ## Build Flags for (( i=3D1; i<=3D$#; )) do @@ -153,7 +134,8 @@ for (( i=3D1; i<=3D$#; )) ## Require 2 input parameters if [ "$2" =3D=3D "" ]; then echo "Not Enough Arguments Provided" - echo "Please review the Help screen "/?"" + echo "Please review the Help screen" + Usage fi =20 ## Assign required arguments --=20 2.7.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel