summaryrefslogtreecommitdiff
path: root/Platform/BroxtonPlatformPkg/BuildAll.sh
blob: 8d5d803bb0ce5b547b03759490d23465a8717b16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution.  The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
# 
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#


##**********************************************************************
## Function define
##**********************************************************************
function Usage() {
  echo
  echo "Usage: BuildAll.bat [/ia32 | /x64]  "
  echo
  echo "If NO flags, both are built.        "
  echo
  echo "       /ia32  Build only 32 bit     "
  echo "       /x64   Build only 64 bit     "
  echo
  echo "Press any key......                 "
  read
  exit 0
}

##
## This script will attempt all the critical build combinations
## (it will not build all combination, as there are way to many)
##

##
## If you think a need build combination is missing, please add it below
##

echo
if [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/x64" ]; then
  ./BuildIFWI.sh /q /vp /x64 APLK debug
  ./BuildIFWI.sh /q /vp /x64 BXTM debug
  ./BuildIFWI.sh /q /vp /x64 /csle BXTM debug
  ./BuildIFWI.sh /q /vp /x64 /sv BXTM debug
  ./BuildIFWI.sh /q /vp /x64 APLK release
  ./BuildIFWI.sh /q /vp /x64 BXTM release

else
  ./BuildIFWI.sh /q /vp APLK debug
  ./BuildIFWI.sh /q /vp BXTM debug
  ./BuildIFWI.sh /q /vp APLK release
  ./BuildIFWI.sh /q /vp BXTM release
fi