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: <e264f74d-b869-46c3-814a-277775a19b0a@SHWDEOPENPSI011.local> (raw)
Change GCC build script.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: lushifex <shifeix.a.lu@intel.com>
---
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 @@
#
##**********************************************************************
+## 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 "
+ echo " Target_Flag: Release, Debug "
+ echo
+ echo "Press any key......"
+ read
+ exit 0
+}
+
+##**********************************************************************
## Initial Setup
##**********************************************************************
@@ -20,6 +39,13 @@ if [ "$1" == "/?" ]; then
Usage
fi
+if [ "$1" == "" ]; then
+ echo "Not Enough Arguments Provided"
+ echo "Please review the Help screen"
+ Usage
+fi
+
+
## Build Flags
for (( i=1; i<=$#; ))
do
@@ -56,5 +82,5 @@ export PACKAGES_PATH=$WORKSPACE:$WORKSPACE/Core:$WORKSPACE/Silicon/:$WORKSPACE/P
make -C BaseTools
-bash ./Platform/BroxtonPlatformPkg/BuildIFWI.sh $Build_Flags APLI $Target_Flag
+bash ./Platform/BroxtonPlatformPkg/BuildIFWI.sh $Build_Flags Broxton $Target_Flag
diff --git a/Platform/BroxtonPlatformPkg/BuildIFWI.sh b/Platform/BroxtonPlatformPkg/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] ^<PlatformType^> ^<BuildTarget^> [IFWI 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 faster) "
- 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 version) "
- 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_RVP "
- 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 settings. "
+ 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 "
+ echo " Build_Target: Release, Debug "
echo
echo "Press any key......"
read
@@ -77,6 +52,12 @@ if [ "$1" == "/?" ]; then
Usage
fi
+if [ "$1" == "" ]; then
+ echo "Not Enough Arguments Provided"
+ echo "Please review the Help screen"
+ Usage
+fi
+
## Build Flags
for (( i=1; i<=$#; ))
do
@@ -153,7 +134,8 @@ for (( i=1; i<=$#; ))
## Require 2 input parameters
if [ "$2" == "" ]; then
echo "Not Enough Arguments Provided"
- echo "Please review the Help screen "/?""
+ echo "Please review the Help screen"
+ Usage
fi
## Assign required arguments
--
2.7.0.windows.1
next reply other threads:[~2017-07-12 5: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=e264f74d-b869-46c3-814a-277775a19b0a@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