From nobody Mon Apr 29 02:00:16 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 1499850407698171.93612597946185; Wed, 12 Jul 2017 02:06:47 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 8297020958976; Wed, 12 Jul 2017 02:04:56 -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 338A121D0B666 for ; Wed, 12 Jul 2017 02:04:55 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jul 2017 02:06:41 -0700 Received: from shwdeopenpsi011.ccr.corp.intel.com (HELO SHWDEOPENPSI011.local) ([10.239.9.22]) by orsmga003.jf.intel.com with SMTP; 12 Jul 2017 02:06:40 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,349,1496127600"; d="scan'208";a="992013886" Date: Wen, 12 Jul 2017 17:06:41 +0800 From: lushifex To: edk2-devel@lists.01.org Message-ID: <100a5853-9898-4048-a5ec-7a17176946af@SHWDEOPENPSI011.local> 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" GCC build script clean up. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lushifex --- Platform/BroxtonPlatformPkg/BuildBios.sh | 43 +-------------------- Platform/BroxtonPlatformPkg/BuildIFWI.sh | 64 +---------------------------= ---- 2 files changed, 3 insertions(+), 104 deletions(-) diff --git a/Platform/BroxtonPlatformPkg/BuildBios.sh b/Platform/BroxtonPla= tformPkg/BuildBios.sh index 2195af6..40d873e 100644 --- a/Platform/BroxtonPlatformPkg/BuildBios.sh +++ b/Platform/BroxtonPlatformPkg/BuildBios.sh @@ -94,40 +94,7 @@ EDK_SOURCE=3D$WORKSPACE ## Optional arguments for (( i=3D1; i<=3D$#; )) do - if [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/Q" ]; then - Build_Flags=3D"$Build_Flags --quiet" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/L" ]; then - Build_Flags=3D"$Build_Flags -j EDK2.log" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/C" ]; then - echo "Removing previous Build files..." - if [ -d "Build" ]; then - rm -r Build - fi - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/W" ]; then - SrcDebug=3DTRUE - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/SV" ]; then - SV_BIOS_ENABLE=3DTRUE - SV_String=3D_SV_ - Arch=3DX64 - echo "-- Forcing to 64-bit for SV build --" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/PPV" ]; then - PPV_BIOS_ENABLE=3DTRUE - SV_String=3D_PPV_ - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/RVVP" ]; then - RVVP_BIOS_ENABLE=3DTRUE - SV_String=3D_RVVP_ - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/RVV" ]; then - RVV_BIOS_ENABLE=3DTRUE - SV_String=3D_RVV_ - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/X64" ]; then + if [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/X64" ]; then Arch=3DX64 shift elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/B" ]; then @@ -136,12 +103,6 @@ for (( i=3D1; i<=3D$#; )) elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/A" ]; then FabId=3DA shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/VP" ]; then - VP_BIOS_ENABLE=3DTRUE - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/CSLE" ]; then - CSLE_ENABLE=3DTRUE - shift else break fi @@ -151,7 +112,7 @@ for (( i=3D1; i<=3D$#; )) if [ "$2" =3D=3D "" ]; then echo=20 echo "Not Enough Arguments Provided" - echo "Please review the Help screen "/?"" + echo "Please review the Help screen" ErrorExit fi =20 diff --git a/Platform/BroxtonPlatformPkg/BuildIFWI.sh b/Platform/BroxtonPla= tformPkg/BuildIFWI.sh index a315e0b..82d5f45 100755 --- a/Platform/BroxtonPlatformPkg/BuildIFWI.sh +++ b/Platform/BroxtonPlatformPkg/BuildIFWI.sh @@ -33,19 +33,9 @@ function Usage () { ## Assign initial values exitCode=3D0 Build_Flags=3D -Stitch_Flags=3D Arch=3DIA32 FabId=3DB =20 -## Description of each Platform/Board_ID -## APLK - Netbook/Desktop (PCCG) -## BXTM - Phablet build (MCG) -## BXTM1 - Phablet build for BXT Die1(E0) (MCG) -## APLI - Embedded/IVI build (IOTG) -eNB_RVP=3DAPLK -Phblt_RVP=3DBXTM -Phblt_Die1_RVP=3DBXTM1 -Embd_RVP=3DAPLI =20 ## Parse Optional arguments if [ "$1" =3D=3D "/?" ]; then @@ -61,31 +51,7 @@ fi ## Build Flags for (( i=3D1; i<=3D$#; )) do - if [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/Q" ]; then - Build_Flags=3D"$Build_Flags /q" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/L" ]; then - Build_Flags=3D"$Build_Flags /l" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/C" ]; then - Build_Flags=3D"$Build_Flags /c" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/W" ]; then - Build_Flags=3D"$Build_Flags /w" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/SV" ]; then - Build_Flags=3D"$Build_Flags /sv" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/PPV" ]; then - Build_Flags=3D"$Build_Flags /ppv" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/RVVP" ]; then - Build_Flags=3D"$Build_Flags /rvvp" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/RVV" ]; then - Build_Flags=3D"$Build_Flags /rvv" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/X64" ]; then + if [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/X64" ]; then Arch=3DX64 Build_Flags=3D"$Build_Flags /x64" shift @@ -97,39 +63,11 @@ for (( i=3D1; i<=3D$#; )) FabId=3DA Build_Flags=3D"$Build_Flags /A" shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/VP" ]; then - Build_Flags=3D"$Build_Flags /vp" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/CSLE" ]; then - Build_Flags=3D"$Build_Flags /csle" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/SATA" ]; then - Build_Flags=3D"$Build_Flags /sata" - shift - elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/PCIE" ]; then - Build_Flags=3D"$Build_Flags /pcie" - shift else break fi done =20 -## Stitch Flags -for (( i=3D1; i<=3D$#; )) - do - if [ "$1" =3D=3D "/nG" ]; then - Stitch_Flags=3D"$Stitch_Flags /nG" - shift - elif [ "$1" =3D=3D "/uM" ]; then - Stitch_Flags=3D"$Stitch_Flags /uM" - shift - elif [ "$1" =3D=3D "/nB" ]; then - Stitch_Flags=3D"$Stitch_Flags /nB" - shift - else - break - fi - done =20 ## Require 2 input parameters if [ "$2" =3D=3D "" ]; then --=20 2.7.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel