Reviewed-by: Liming Gao <[email protected]> > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf Of Rebecca > Cran via Groups.Io > Sent: Thursday, April 11, 2019 11:17 AM > To: [email protected]; Gao, Liming <[email protected]>; Zhu, Yonghong > <[email protected]> > Cc: Rebecca Cran <[email protected]> > Subject: [edk2-devel] [PATCH] 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 <[email protected]> > --- > BaseTools/Source/C/GNUmakefile | 5 +++-- > BaseTools/Source/C/Makefiles/header.makefile | 5 +++-- > 2 files changed, 6 insertions(+), 4 deletions(-) > > diff --git a/BaseTools/Source/C/GNUmakefile b/BaseTools/Source/C/GNUmakefile > index 1d048c4cc6..37bcce519c 100644 > --- a/BaseTools/Source/C/GNUmakefile > +++ b/BaseTools/Source/C/GNUmakefile > @@ -21,8 +21,9 @@ ifndef HOST_ARCH > endif > ifneq (,$(findstring aarch64,$(uname_m))) > HOST_ARCH=AARCH64 > - endif > - ifneq (,$(findstring arm,$(uname_m))) > + else ifneq (,$(findstring arm64,$(uname_m))) > + HOST_ARCH=AARCH64 > + else ifneq (,$(findstring arm,$(uname_m))) > HOST_ARCH=ARM > endif > ifndef HOST_ARCH > diff --git a/BaseTools/Source/C/Makefiles/header.makefile > b/BaseTools/Source/C/Makefiles/header.makefile > index 90fb3453ad..d76b8283dd 100644 > --- a/BaseTools/Source/C/Makefiles/header.makefile > +++ b/BaseTools/Source/C/Makefiles/header.makefile > @@ -23,8 +23,9 @@ ifndef HOST_ARCH > endif > ifneq (,$(findstring aarch64,$(uname_m))) > HOST_ARCH=AARCH64 > - endif > - ifneq (,$(findstring arm,$(uname_m))) > + else ifneq (,$(findstring arm64,$(uname_m))) > + HOST_ARCH=AARCH64 > + else ifneq (,$(findstring arm,$(uname_m))) > HOST_ARCH=ARM > endif > ifndef HOST_ARCH > -- > 2.20.1 > > > -=-=-=-=-=-= > Groups.io Links: You receive all messages sent to this group. > > View/Reply Online (#38845): https://edk2.groups.io/g/devel/message/38845 > Mute This Topic: https://groups.io/mt/31026994/1759384 > Group Owner: [email protected] > Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] > -=-=-=-=-=-=
-=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#38888): https://edk2.groups.io/g/devel/message/38888 Mute This Topic: https://groups.io/mt/31026994/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
