diff options
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 |