From 10dada4901539d69107e05aefc85f3c2fc874a01 Mon Sep 17 00:00:00 2001 From: Zhuowei Zhang Date: Thu, 21 Feb 2019 17:01:39 -0800 Subject: [PATCH] Add build scripts based on edk2-platform's instructions --- build.sh | 6 ++++++ build_common.sh | 3 +++ firstrun.sh | 8 ++++++++ 3 files changed, 17 insertions(+) create mode 100755 build.sh create mode 100644 build_common.sh create mode 100755 firstrun.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..6942a5a --- /dev/null +++ b/build.sh @@ -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 diff --git a/build_common.sh b/build_common.sh new file mode 100644 index 0000000..09a5b06 --- /dev/null +++ b/build_common.sh @@ -0,0 +1,3 @@ +export PACKAGES_PATH=$PWD/../edk2:$PWD/../edk2-platforms:$PWD +export WORKSPACE=$PWD/workspace +. ../edk2/edksetup.sh diff --git a/firstrun.sh b/firstrun.sh new file mode 100755 index 0000000..1079ff8 --- /dev/null +++ b/firstrun.sh @@ -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 +