mirror of https://github.com/acidanthera/audk.git
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.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
This commit is contained in:
parent
9979bab783
commit
ad2a2e5623
|
@ -25,6 +25,12 @@ ifndef ARCH
|
||||||
ifeq ($(patsubst i%86,IA32,$(uname_m)),IA32)
|
ifeq ($(patsubst i%86,IA32,$(uname_m)),IA32)
|
||||||
ARCH=IA32
|
ARCH=IA32
|
||||||
endif
|
endif
|
||||||
|
ifneq (,$(findstring aarch64,$(uname_m)))
|
||||||
|
ARCH=AARCH64
|
||||||
|
endif
|
||||||
|
ifneq (,$(findstring arm,$(uname_m)))
|
||||||
|
ARCH=ARM
|
||||||
|
endif
|
||||||
ifndef ARCH
|
ifndef ARCH
|
||||||
$(info Could not detected ARCH from uname results)
|
$(info Could not detected ARCH from uname results)
|
||||||
$(error ARCH is not defined!)
|
$(error ARCH is not defined!)
|
||||||
|
|
Loading…
Reference in New Issue