Add build scripts based on edk2-platform's instructions

This commit is contained in:
Zhuowei Zhang 2019-02-21 17:01:39 -08:00
parent d7e1af47c1
commit 10dada4901
3 changed files with 17 additions and 0 deletions

6
build.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
# based on the instructions from edk2-platform
set -e
. build_common.sh
# not actually GCC5; it's GCC7 on Ubuntu 18.04.
GCC5_AARCH64_PREFIX=aarch64-linux-gnu- build -n 4 -a AARCH64 -t GCC5 -p Pixel3XL/Pixel3XL.dsc

3
build_common.sh Normal file
View File

@ -0,0 +1,3 @@
export PACKAGES_PATH=$PWD/../edk2:$PWD/../edk2-platforms:$PWD
export WORKSPACE=$PWD/workspace
. ../edk2/edksetup.sh

8
firstrun.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# based on the instructions from edk2-platform
# do this first:
# https://github.com/tianocore/tianocore.github.io/wiki/Using-EDK-II-with-Native-GCC#Install_required_software_from_apt
set -e
. build_common.sh
make -C ../edk2/BaseTools