On FreeBSD uname -a reports 'amd64' for the 64-bit x86 architecture.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ed Maste <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
---
 BaseTools/Source/C/GNUmakefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/BaseTools/Source/C/GNUmakefile b/BaseTools/Source/C/GNUmakefile
index 124517b..6aa37e4 100644
--- a/BaseTools/Source/C/GNUmakefile
+++ b/BaseTools/Source/C/GNUmakefile
@@ -19,7 +19,7 @@ ifndef ARCH
   #

   uname_m = $(shell uname -m)

   $(info Attempting to detect ARCH from 'uname -m': $(uname_m))

-  ifeq ($(uname_m),x86_64)

+  ifneq (,$(strip $(filter $(uname_m), x86_64 amd64)))

     ARCH=X64

   endif

   ifeq ($(patsubst i%86,IA32,$(uname_m)),IA32)

-- 
1.9.0


------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
edk2-buildtools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel

Reply via email to