public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: lushifex <shifeix.a.lu@intel.com>
To: edk2-devel@lists.01.org
Cc: david.wei@intel.com;
Subject: [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Build Script.
Date: Tue, 11 Jul 2017 15:20:09 -0700	[thread overview]
Message-ID: <100a5853-9898-4048-a5ec-7a17176946af@SHWDEOPENPSI011.local> (raw)

GCC build script clean up.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: lushifex <shifeix.a.lu@intel.com>
---
 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/BroxtonPlatformPkg/BuildBios.sh
index 2195af6..40d873e 100644
--- a/Platform/BroxtonPlatformPkg/BuildBios.sh
+++ b/Platform/BroxtonPlatformPkg/BuildBios.sh
@@ -94,40 +94,7 @@ EDK_SOURCE=$WORKSPACE
 ## Optional arguments
 for (( i=1; i<=$#; ))
   do
-    if [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/Q" ]; then
-      Build_Flags="$Build_Flags --quiet"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/L" ]; then
-      Build_Flags="$Build_Flags -j EDK2.log"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/C" ]; then
-      echo "Removing previous Build files..."
-      if [ -d "Build" ]; then
-        rm -r Build
-      fi
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/W" ]; then
-      SrcDebug=TRUE
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/SV" ]; then
-      SV_BIOS_ENABLE=TRUE
-      SV_String=_SV_
-      Arch=X64
-      echo "-- Forcing to 64-bit for SV build --"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/PPV" ]; then
-      PPV_BIOS_ENABLE=TRUE
-      SV_String=_PPV_
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/RVVP" ]; then
-      RVVP_BIOS_ENABLE=TRUE
-      SV_String=_RVVP_
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/RVV" ]; then
-      RVV_BIOS_ENABLE=TRUE
-      SV_String=_RVV_
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/X64" ]; then
+    if [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/X64" ]; then
       Arch=X64
       shift
     elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/B" ]; then
@@ -136,12 +103,6 @@ for (( i=1; i<=$#; ))
     elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/A" ]; then
       FabId=A
       shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/VP" ]; then
-      VP_BIOS_ENABLE=TRUE
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/CSLE" ]; then
-      CSLE_ENABLE=TRUE
-      shift
     else
       break
     fi
@@ -151,7 +112,7 @@ for (( i=1; i<=$#; ))
 if [ "$2" == "" ]; then
   echo 
   echo "Not Enough Arguments Provided"
-  echo "Please review the Help screen "/?""
+  echo "Please review the Help screen"
   ErrorExit
 fi
 
diff --git a/Platform/BroxtonPlatformPkg/BuildIFWI.sh b/Platform/BroxtonPlatformPkg/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=0
 Build_Flags=
-Stitch_Flags=
 Arch=IA32
 FabId=B
 
-## 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=APLK
-Phblt_RVP=BXTM
-Phblt_Die1_RVP=BXTM1
-Embd_RVP=APLI
 
 ## Parse Optional arguments
 if [ "$1" == "/?" ]; then
@@ -61,31 +51,7 @@ fi
 ## Build Flags
 for (( i=1; i<=$#; ))
   do
-    if [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/Q" ]; then
-      Build_Flags="$Build_Flags /q"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/L" ]; then
-      Build_Flags="$Build_Flags /l"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/C" ]; then
-      Build_Flags="$Build_Flags /c"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/W" ]; then
-      Build_Flags="$Build_Flags /w"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/SV" ]; then
-      Build_Flags="$Build_Flags /sv"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/PPV" ]; then
-      Build_Flags="$Build_Flags /ppv"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/RVVP" ]; then
-      Build_Flags="$Build_Flags /rvvp"
-      shift
-	elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/RVV" ]; then
-      Build_Flags="$Build_Flags /rvv"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/X64" ]; then
+    if [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/X64" ]; then
       Arch=X64
       Build_Flags="$Build_Flags /x64"
       shift
@@ -97,39 +63,11 @@ for (( i=1; i<=$#; ))
       FabId=A
       Build_Flags="$Build_Flags /A"
       shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/VP" ]; then
-      Build_Flags="$Build_Flags /vp"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/CSLE" ]; then
-      Build_Flags="$Build_Flags /csle"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/SATA" ]; then
-      Build_Flags="$Build_Flags /sata"
-      shift
-    elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/PCIE" ]; then
-      Build_Flags="$Build_Flags /pcie"
-      shift
     else
       break
     fi
   done
 
-## Stitch Flags
-for (( i=1; i<=$#; ))
-  do
-    if [ "$1" == "/nG" ]; then
-      Stitch_Flags="$Stitch_Flags /nG"
-      shift
-    elif [ "$1" == "/uM" ]; then
-      Stitch_Flags="$Stitch_Flags /uM"
-      shift
-    elif [ "$1" == "/nB" ]; then
-      Stitch_Flags="$Stitch_Flags /nB"
-      shift
-    else
-      break
-    fi
-  done
 
 ## Require 2 input parameters
 if [ "$2" == "" ]; then
-- 
2.7.0.windows.1




             reply	other threads:[~2017-07-12  9:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-11 22:20 lushifex [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-12-19 16:40 [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Build Script lushifex
2017-12-20  6:04 ` Wei, David
2017-10-30  1:58 [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Build script lushifex
2017-10-30  2:15 ` Wei, David
2017-09-14  5:59 [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Build Script lushifex
2017-09-14  6:24 ` Wei, David
2017-07-11 22:20 lushifex
2017-06-16  2:48 [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Build script lushifex
2017-06-16  2:50 ` Wei, David
2017-06-08  7:58 lushifex
2017-06-08  8:01 ` Wei, David

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=100a5853-9898-4048-a5ec-7a17176946af@SHWDEOPENPSI011.local \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox