From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@bluestop.org header.s=mail header.b=JVNgL5XC; spf=pass (domain: bluestop.org, ip: 65.103.231.193, mailfrom: rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [65.103.231.193]) by groups.io with SMTP; Wed, 10 Apr 2019 20:17:10 -0700 Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id 2FC5367F4D; Wed, 10 Apr 2019 21:19:09 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bluestop.org; s=mail; t=1554952749; bh=MvaEGlY1yC6GLfoiR+cnxJ4GwXK9ZyP5cdzvmhI/cqU=; h=From:To:Cc:Subject:Date:From; b=JVNgL5XCEWccQPZJMdJnyxsJJWYMLcPnMMqxSHZZ21pdC91sztP7nRL51FtyFMpMD C0P1MGPYTfPiuaZOKMkxonDyd2W+fArJ6T2PLnYODPqGEspowTWZbk3++awlc1FC8l N/lSou5UHC5PCcmvmviYmMhH2pSZwhMvpOZ3Lk/s= Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gizS3556KrnQ; Wed, 10 Apr 2019 21:19:08 -0600 (MDT) Received: from arm64-overdrive.int.bluestop.org (unknown [65.103.231.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA; Wed, 10 Apr 2019 21:19:08 -0600 (MDT) From: "Rebecca Cran" To: devel@edk2.groups.io, Liming Gao , Yonghong Zhu Cc: Rebecca Cran Subject: [PATCH] BaseTools: support arm64 as a platform name in addition to aarch64 Date: Wed, 10 Apr 2019 21:16:53 -0600 Message-Id: <20190411031653.38092-1-rebecca@bluestop.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Some systems such as FreeBSD identify the platform as 'arm64' and not 'aarch64' as Linux does. Signed-off-by: Rebecca Cran --- 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/GNUmakef= ile 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=3DAARCH64 - endif - ifneq (,$(findstring arm,$(uname_m))) + else ifneq (,$(findstring arm64,$(uname_m))) + HOST_ARCH=3DAARCH64 + else ifneq (,$(findstring arm,$(uname_m))) HOST_ARCH=3DARM endif ifndef HOST_ARCH diff --git a/BaseTools/Source/C/Makefiles/header.makefile b/BaseTools/Sou= rce/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=3DAARCH64 - endif - ifneq (,$(findstring arm,$(uname_m))) + else ifneq (,$(findstring arm64,$(uname_m))) + HOST_ARCH=3DAARCH64 + else ifneq (,$(findstring arm,$(uname_m))) HOST_ARCH=3DARM endif ifndef HOST_ARCH --=20 2.20.1