summaryrefslogtreecommitdiff
path: root/usr.sbin/mkuboot
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-12-20 11:27:12 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-12-20 11:27:12 +0000
commit0bf776f0fa29573c13215f11ab3b7bd31bb2858e (patch)
treea6975435dbd104317a4c12282ba9d4ce6bd14ee4 /usr.sbin/mkuboot
parent8b00831bbf0ef1286f929d119d7f28b771523c7d (diff)
Add the u-boot arm64 architecture number and map it to "aarch64" to
match OpenBSD/arm64 MACHINE_ARCH. ok patrick@
Diffstat (limited to 'usr.sbin/mkuboot')
-rw-r--r--usr.sbin/mkuboot/mkuboot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/mkuboot/mkuboot.c b/usr.sbin/mkuboot/mkuboot.c
index 36103366fb8..5a1b764319b 100644
--- a/usr.sbin/mkuboot/mkuboot.c
+++ b/usr.sbin/mkuboot/mkuboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkuboot.c,v 1.6 2015/10/12 06:24:28 deraadt Exp $ */
+/* $OpenBSD: mkuboot.c,v 1.7 2016/12/20 11:27:11 jsg Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
@@ -43,6 +43,7 @@
#define IH_ARCH_SPARC 10 /* Sparc */
#define IH_ARCH_SPARC64 11 /* Sparc 64 Bit */
#define IH_ARCH_M68K 12 /* M68K */
+#define IH_ARCH_ARM64 22 /* AARCH64 */
#define IH_TYPE_STANDALONE 1 /* Standalone */
#define IH_TYPE_KERNEL 2 /* OS Kernel Image */
@@ -94,6 +95,7 @@ struct arch_map {
};
static const struct arch_map archmap[] = {
+ { IH_ARCH_ARM64, "aarch64" },
{ IH_ARCH_ALPHA, "alpha" },
{ IH_ARCH_IA64, "amd64" },
{ IH_ARCH_ARM, "arm" },