diff options
author | lushifex <shifeix.a.lu@intel.com> | 2017-07-12 11:28:57 +0800 |
---|---|---|
committer | Guo Mang <mang.guo@intel.com> | 2017-07-12 13:43:10 +0800 |
commit | 08f8ff5c23590ed80749daa00f33525b6ae1ce07 (patch) | |
tree | 451584fe775f5d7d0cd491af25b37648ca256468 /BuildBIOS.sh | |
parent | e5251a3139e6f3b2c4de5b7d53c77e6a030e84c1 (diff) | |
download | edk2-platforms-08f8ff5c23590ed80749daa00f33525b6ae1ce07.tar.xz |
Build Script.
Change GCC build script.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: lushifex <shifeix.a.lu@intel.com>
Diffstat (limited to 'BuildBIOS.sh')
-rwxr-xr-x | BuildBIOS.sh | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/BuildBIOS.sh b/BuildBIOS.sh index c241d870e7..552cf2d197 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 |