]>
git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Build_IFWI.sh
2 ##**********************************************************************
4 ##**********************************************************************
7 echo "Script to build BIOS firmware and stitch the entire IFWI."
9 echo "Usage: Build_IFWI.bat [options] PlatformType BuildTarget "
12 echo " /yL [option] : Enable SPI lock"
13 echo " Platform Types: MNW2"
14 echo " Build Targets: Release, Debug"
16 echo " See Stitch/Stitch_Config.txt for additional stitching settings."
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"
64 elif [ "$1" == "/yL" ]; then
65 Build_Flags
="$Build_Flags /yL"
72 ## Require 2 input parameters
73 if [ "$2" == "" ]; then
77 ## Assign required arguments
80 if [ "$3" == "" ]; then
86 ## Go to root directory
90 echo "======================================================================"
91 echo "Build_IFWI: Calling BIOS build Script..."
92 .
/$PLATFORM_PACKAGE/bld_vlv.sh
$Build_Flags $Platform_Type $Build_Target
95 echo Finished Building BIOS.
97 ## Start Integration process
98 echo ======================================================================
99 echo Skip
"Build_IFWI: Calling IFWI Stitching Script..."
102 echo Build_IFWI is finished.
103 echo The final IFWI
file is located
in Stitch
104 echo ======================================================================