From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by casper.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bIAmJ-0001Gf-Q6 for barebox@lists.infradead.org; Wed, 29 Jun 2016 08:23:24 +0000 Received: by mail-wm0-x242.google.com with SMTP id r201so12390515wme.0 for ; Wed, 29 Jun 2016 01:23:06 -0700 (PDT) From: Raphael Poggi Date: Wed, 29 Jun 2016 10:22:20 +0200 Message-Id: <1467188540-76509-14-git-send-email-poggi.raph@gmail.com> In-Reply-To: <1467188540-76509-1-git-send-email-poggi.raph@gmail.com> References: <1467188540-76509-1-git-send-email-poggi.raph@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v4 13/13] uimage: add define for ARM64 architecture To: barebox@lists.infradead.org Cc: Raphael Poggi Signed-off-by: Raphael Poggi --- common/image.c | 1 + include/image.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/common/image.c b/common/image.c index f3ec071..04cd86b 100644 --- a/common/image.c +++ b/common/image.c @@ -59,6 +59,7 @@ static table_entry_t arch_name[] = { { IH_ARCH_AVR32, "avr32", "AVR32", }, { IH_ARCH_NDS32, "nds32", "NDS32", }, { IH_ARCH_OPENRISC, "or1k", "OpenRISC 1000",}, + { IH_ARCH_ARM64, "arm64", "AArch64", }, { -1, "", "", }, }; diff --git a/include/image.h b/include/image.h index 07ab0f1..3e75d49 100644 --- a/include/image.h +++ b/include/image.h @@ -84,11 +84,16 @@ #define IH_ARCH_SANDBOX 19 /* Sandbox architecture (test only) */ #define IH_ARCH_NDS32 20 /* ANDES Technology - NDS32 */ #define IH_ARCH_OPENRISC 21 /* OpenRISC 1000 */ +#define IH_ARCH_ARM64 22 /* ARM64 */ #if defined(__PPC__) #define IH_ARCH IH_ARCH_PPC #elif defined(__ARM__) +#ifdef CONFIG_CPU_64v8 +#define IH_ARCH IH_ARCH_ARM64 +#else #define IH_ARCH IH_ARCH_ARM +#endif #elif defined(__I386__) || defined(__x86_64__) || defined(__i386__) #define IH_ARCH IH_ARCH_I386 #elif defined(__mips__) -- 2.1.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox