]>
git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Build_IFWI.sh
1 ##**********************************************************************
3 ##**********************************************************************
6 echo "Script to build BIOS firmware and stitch the entire IFWI."
8 echo "Usage: Build_IFWI.bat PlatformType BuildTarget "
11 echo " Platform Types: MNW2"
12 echo " Build Targets: Release, Debug"
14 echo " See Stitch/Stitch_Config.txt for additional stitching settings."
17 echo "Press any key......"
22 ## Assign initial values
27 PLATFORM_PACKAGE
=Vlv2TbltDevicePkg
29 ## Parse Optional arguments
30 if [ "$1" == "/?" ]; then
36 if [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/Q" ]; then
37 Build_Flags
="$Build_Flags /q"
39 elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/L" ]; then
40 Build_Flags
="$Build_Flags /l"
42 elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/C" ]; then
43 Build_Flags
="$Build_Flags /c"
45 elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/ECP" ]; then
46 Build_Flags
="$Build_Flags /ecp"
48 elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/X64" ]; then
50 Build_Flags
="$Build_Flags /x64"
52 elif [ "$1" == "/nG" ]; then
53 Stitch_Flags
="$Stitch_Flags /nG"
55 elif [ "$1" == "/nM" ]; then
56 Stitch_Flags
="$Stitch_Flags /nM"
58 elif [ "$1" == "/nB" ]; then
59 Stitch_Flags
="$Stitch_Flags /nB"
61 elif [ "$1" == "/nV" ]; then
62 Stitch_Flags
="$Stitch_Flags /nV"
69 ## Require 2 input parameters
70 if [ "$2" == "" ]; then
74 ## Assign required arguments
77 if [ "$3" == "" ]; then
83 ## Go to root directory
87 echo "======================================================================"
88 echo "Build_IFWI: Calling BIOS build Script..."
89 .
/$PLATFORM_PACKAGE/bld_vlv.sh
$Build_Flags $Platform_Type $Build_Target
92 echo Finished Building BIOS.
94 ## Start Integration process
95 echo ======================================================================
96 echo Skip
"Build_IFWI: Calling IFWI Stitching Script..."
99 echo Build_IFWI is finished.
100 echo The final IFWI
file is located
in Stitch
101 echo ======================================================================