-
Notifications
You must be signed in to change notification settings - Fork 4
/
build RELEASE_GCC53
executable file
·44 lines (37 loc) · 1.05 KB
/
build RELEASE_GCC53
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
#!/bin/bash
SCRIPT_ABS_FILENAME=`LC_ALL=en_US.ISO8859-1 perl -e 'use Cwd "abs_path";print abs_path(shift)' "${BASH_SOURCE[0]}"`
SCRIPT_DIR=`dirname "$SCRIPT_ABS_FILENAME"`
if ! [ -d MdePkg ]
then
echo this script must execute from UDK folder containing OpenCorePkg folder
exit 1
fi
if ! [ -d rEFIt_UEFI ]
then
echo this script must execute from UDK folder containing BootloaderChooser folder
exit 1
fi
njobs=9
while getopts ":n:" opt; do
case $opt in
n)
njobs=$OPTARG
;;
\?)
echo "Invalid option: -$OPTARG" >&2
;;
esac
done
shift $((OPTIND-1))
export TOOLCHAIN_DIR="$PWD"/toolchain.gcc102.snb
#export TOOLCHAIN_DIR="$PWD"/toolchain.gcc121
export GCC53_BIN="$TOOLCHAIN_DIR"/cross/bin/x86_64-clover-linux-gnu-
export NASM_PREFIX="$TOOLCHAIN_DIR"/bin/
export PYTHON_COMMAND=python3 # todo : detect python version instead of hardcoding
rm -rf Conf
mkdir Conf
source edksetup.sh
make -C BaseTools
"$SCRIPT_DIR"/generate_version
### NOTE : Use -n 1 for making with only one job
build -a X64 -b RELEASE -t GCC53 -p Clover.dsc -n $njobs $@