Revision: 18206
          http://sourceforge.net/p/edk2/code/18206
Author:   abiesheuvel
Date:     2015-08-12 05:22:49 +0000 (Wed, 12 Aug 2015)
Log Message:
-----------
BaseTools: add ARCH detection for AARCH64 and ARM

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 <[email protected]>
Reviewed-by: Liming Gao <[email protected]>

Modified Paths:
--------------
    trunk/edk2/BaseTools/Source/C/GNUmakefile

Modified: trunk/edk2/BaseTools/Source/C/GNUmakefile
===================================================================
--- trunk/edk2/BaseTools/Source/C/GNUmakefile   2015-08-12 01:27:31 UTC (rev 
18205)
+++ trunk/edk2/BaseTools/Source/C/GNUmakefile   2015-08-12 05:22:49 UTC (rev 
18206)
@@ -25,6 +25,12 @@
   ifeq ($(patsubst i%86,IA32,$(uname_m)),IA32)
     ARCH=IA32
   endif
+  ifneq (,$(findstring aarch64,$(uname_m)))
+    ARCH=AARCH64
+  endif
+  ifneq (,$(findstring arm,$(uname_m)))
+    ARCH=ARM
+  endif
   ifndef ARCH
     $(info Could not detected ARCH from uname results)
     $(error ARCH is not defined!)


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to