-
Notifications
You must be signed in to change notification settings - Fork 142
/
build49
executable file
·45 lines (39 loc) · 1.11 KB
/
build49
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
#
# Adjust to taste.
#
# This assumes the following directory structure:
#
# \
# \edk2
# \RaspberryPiPkg
# \build49
#
set -e
export WORKSPACE=$PWD
export PACKAGES_PATH=$WORKSPACE/edk2:$WORKSPACE/RaspberryPiPkg
export EDK_TOOLS_PATH=$WORKSPACE/edk2/BaseTools
export GCC49_AARCH64_PREFIX=aarch64-linux-
export CROSS_COMPILE=aarch64-linux-
rm -rf Conf
mkdir Conf
make -C $EDK_TOOLS_PATH
echo $EDK_TOOLS_PATH
. $WORKSPACE/edk2/edksetup.sh BaseTools
pushd $WORKSPACE/RaspberryPiPkg
BUILD_COMMIT=`git rev-parse --short HEAD`
popd
BUILD_DATE=`date +%m/%d/%Y`
BUILD_EPOCH=`date +%s`
#
# 1 - Use ACPI Standard PinFunction resource for pin muxing.
# Supported by Windows 10 v1903+
# Requires iASL 20170531+
#
# 0 - Use Microsoft's proprietary MsftFunctionConfig for pin muxing. (Default)
# Supported by earlier versions of Windows 10
#
ACPI_PINFUNCTION=0
COMMON_OPTS="-DBUILD_EPOCH=$BUILD_EPOCH -DBUILD_DATE=$BUILD_DATE -DBUILD_COMMIT=$BUILD_COMMIT -DACPI_PINFUNCTION=$ACPI_PINFUNCTION"
TARGET="-a AARCH64 -t GCC49 -p RaspberryPiPkg/RaspberryPiPkg.dsc"
build -b DEBUG $TARGET $COMMON_OPTS
build -b RELEASE $TARGET $COMMON_OPTS