BaseTools: support arm64 as a platform name in addition to aarch64
Some systems such as FreeBSD identify the platform as 'arm64' and not 'aarch64' as Linux does. Signed-off-by: Rebecca Cran <rebecca@bluestop.org> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> [lersek@redhat.com: fix up DKIM damage in the "From:" address]
This commit is contained in:
committed by
Laszlo Ersek
parent
d027412258
commit
fbb0ec7ea4
@@ -21,8 +21,9 @@ ifndef HOST_ARCH
|
|||||||
endif
|
endif
|
||||||
ifneq (,$(findstring aarch64,$(uname_m)))
|
ifneq (,$(findstring aarch64,$(uname_m)))
|
||||||
HOST_ARCH=AARCH64
|
HOST_ARCH=AARCH64
|
||||||
endif
|
else ifneq (,$(findstring arm64,$(uname_m)))
|
||||||
ifneq (,$(findstring arm,$(uname_m)))
|
HOST_ARCH=AARCH64
|
||||||
|
else ifneq (,$(findstring arm,$(uname_m)))
|
||||||
HOST_ARCH=ARM
|
HOST_ARCH=ARM
|
||||||
endif
|
endif
|
||||||
ifndef HOST_ARCH
|
ifndef HOST_ARCH
|
||||||
|
@@ -23,8 +23,9 @@ ifndef HOST_ARCH
|
|||||||
endif
|
endif
|
||||||
ifneq (,$(findstring aarch64,$(uname_m)))
|
ifneq (,$(findstring aarch64,$(uname_m)))
|
||||||
HOST_ARCH=AARCH64
|
HOST_ARCH=AARCH64
|
||||||
endif
|
else ifneq (,$(findstring arm64,$(uname_m)))
|
||||||
ifneq (,$(findstring arm,$(uname_m)))
|
HOST_ARCH=AARCH64
|
||||||
|
else ifneq (,$(findstring arm,$(uname_m)))
|
||||||
HOST_ARCH=ARM
|
HOST_ARCH=ARM
|
||||||
endif
|
endif
|
||||||
ifndef HOST_ARCH
|
ifndef HOST_ARCH
|
||||||
|
Reference in New Issue
Block a user