Skip to content

Commit

Permalink
uimage: add define for ARM64 architecture
Browse files Browse the repository at this point in the history
Signed-off-by: Raphael Poggi <[email protected]>
Signed-off-by: Sascha Hauer <[email protected]>
  • Loading branch information
raphui authored and saschahauer committed Jul 6, 2016
1 parent 10bf671 commit 9405110
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, "", "", },
};

Expand Down
5 changes: 5 additions & 0 deletions include/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit 9405110

Please sign in to comment.