]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: add ARCH detection for AARCH64 and ARM
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 12 Aug 2015 05:22:49 +0000 (05:22 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Wed, 12 Aug 2015 05:22:49 +0000 (05:22 +0000)
Add auto detection for the ARCH variable for AARCH64 and ARM
systems. This allows us to do a native build of the BaseTools
without the need to set ARCH externally.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18206 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/Source/C/GNUmakefile

index 6aa37e49fb9e5b18e7bf1a9a4ef59b2908ece0fe..66baabb3f080bc6a9f88a65461a341e4484265e2 100644 (file)
@@ -25,6 +25,12 @@ ifndef ARCH
   ifeq ($(patsubst i%86,IA32,$(uname_m)),IA32)\r
     ARCH=IA32\r
   endif\r
+  ifneq (,$(findstring aarch64,$(uname_m)))\r
+    ARCH=AARCH64\r
+  endif\r
+  ifneq (,$(findstring arm,$(uname_m)))\r
+    ARCH=ARM\r
+  endif\r
   ifndef ARCH\r
     $(info Could not detected ARCH from uname results)\r
     $(error ARCH is not defined!)\r