summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Lindholm <leif.lindholm@linaro.org>2017-06-19 17:44:26 +0100
committerLeif Lindholm <leif.lindholm@linaro.org>2017-06-19 17:44:26 +0100
commitc71e1c74f13da61cbaf9be2e926ffa2b98b55c30 (patch)
tree41bd10a12ab5542a0a196cbece4079bd1bc5d64a
parent6a851217cb7491af5276cd584b7e6390aaa14e2f (diff)
edk2-build.sh: use common helpers for determining build arch
Use new get_build_arch helper instead of inlining case statement. Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
-rwxr-xr-xedk2-build.sh18
1 files changed, 3 insertions, 15 deletions
diff --git a/edk2-build.sh b/edk2-build.sh
index 7aeca02..76c3647 100755
--- a/edk2-build.sh
+++ b/edk2-build.sh
@@ -202,21 +202,9 @@ function configure_paths
function prepare_build
{
- BUILD_ARCH=`uname -m`
- case $BUILD_ARCH in
- arm*)
- ARCH=ARM
- ;;
- aarch64)
- ARCH=AARCH64
- ;;
- x86_64)
- ARCH=X64
- ;;
- *)
- unset ARCH
- ;;
- esac
+ get_build_arch
+ export ARCH=$BUILD_ARCH
+
export ARCH
cd $EDK2_DIR
PACKAGES_PATH=$GLOBAL_PACKAGES_PATH . edksetup.sh --reconfig