Re: [edk2] [PATCH] BaseTools: add ARCH detection for AARCH64 and ARM

2015-08-11 Thread Gao, Liming
Reviewed-by: Liming Gao liming@intel.com

-Original Message-
From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Ard 
Biesheuvel
Sent: Tuesday, August 11, 2015 8:03 PM
To: edk2-devel@lists.01.org; Liu, Yingke D
Cc: leif.lindh...@linaro.org; Ard Biesheuvel
Subject: [edk2] [PATCH] 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 ard.biesheu...@linaro.org
---
 BaseTools/Source/C/GNUmakefile | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/BaseTools/Source/C/GNUmakefile b/BaseTools/Source/C/GNUmakefile 
index 6aa37e49fb9e..66baabb3f080 100644
--- a/BaseTools/Source/C/GNUmakefile
+++ b/BaseTools/Source/C/GNUmakefile
@@ -25,6 +25,12 @@ ifndef ARCH
   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!)
--
1.9.1

___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] [PATCH] BaseTools: add ARCH detection for AARCH64 and ARM

2015-08-11 Thread Ard Biesheuvel
On 12 August 2015 at 04:52, Gao, Liming liming@intel.com wrote:
 Reviewed-by: Liming Gao liming@intel.com


Thanks.

Committed as SVN r18206

 -Original Message-
 From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Ard 
 Biesheuvel
 Sent: Tuesday, August 11, 2015 8:03 PM
 To: edk2-devel@lists.01.org; Liu, Yingke D
 Cc: leif.lindh...@linaro.org; Ard Biesheuvel
 Subject: [edk2] [PATCH] 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 ard.biesheu...@linaro.org
 ---
  BaseTools/Source/C/GNUmakefile | 6 ++
  1 file changed, 6 insertions(+)

 diff --git a/BaseTools/Source/C/GNUmakefile b/BaseTools/Source/C/GNUmakefile 
 index 6aa37e49fb9e..66baabb3f080 100644
 --- a/BaseTools/Source/C/GNUmakefile
 +++ b/BaseTools/Source/C/GNUmakefile
 @@ -25,6 +25,12 @@ ifndef ARCH
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!)
 --
 1.9.1

 ___
 edk2-devel mailing list
 edk2-devel@lists.01.org
 https://lists.01.org/mailman/listinfo/edk2-devel
 ___
 edk2-devel mailing list
 edk2-devel@lists.01.org
 https://lists.01.org/mailman/listinfo/edk2-devel
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel