Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/mkubootimage Support arm64, i386 and or1k.



details:   https://anonhg.NetBSD.org/src/rev/8cfa04de2d03
branches:  trunk
changeset: 332593:8cfa04de2d03
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Sep 30 10:21:50 2014 +0000

description:
Support arm64, i386 and or1k.

diffstat:

 usr.bin/mkubootimage/mkubootimage.1 |   6 +++---
 usr.bin/mkubootimage/mkubootimage.c |  10 +++++++---
 usr.bin/mkubootimage/uboot.h        |   7 +++++--
 3 files changed, 15 insertions(+), 8 deletions(-)

diffs (91 lines):

diff -r 815c98e8b30c -r 8cfa04de2d03 usr.bin/mkubootimage/mkubootimage.1
--- a/usr.bin/mkubootimage/mkubootimage.1       Tue Sep 30 10:15:03 2014 +0000
+++ b/usr.bin/mkubootimage/mkubootimage.1       Tue Sep 30 10:21:50 2014 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mkubootimage.1,v 1.5 2012/12/29 15:11:56 jmcneill Exp $
+.\"    $NetBSD: mkubootimage.1,v 1.6 2014/09/30 10:21:50 msaitoh Exp $
 .\"
 .\" Copyright (c) 2012 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -36,7 +36,7 @@
 .Sh SYNOPSIS
 .Nm
 .Op Fl h
-.Fl A No ( arm Ns | Ns mips Ns | Ns mips64 Ns | Ns powerpc )
+.Fl A No ( arm Ns | Ns arm64 Ns | Ns i386 Ns | Ns mips Ns | Ns mips64 Ns | Ns or1k Ns | Ns powerpc )
 .Fl a Ar address
 .Op Fl C No Po bz2 Ns | Ns gz Ns | Ns lzma Ns | Ns lzo Ns | Ns none Pc
 .Op Fl E Ar address
@@ -55,7 +55,7 @@
 .Pp
 The arguments are as follows:
 .Bl -tag -width indent
-.It Fl A No ( arm Ns | Ns mips Ns | Ns mips64 Ns | Ns powerpc )
+.It Fl A No ( arm Ns | Ns arm64 Ns | Ns i386 Ns | Ns mips Ns | Ns mips64 Ns | Ns or1k Ns | Ns powerpc )
 Defines the architecture.
 This is required.
 .It Fl a Ar address
diff -r 815c98e8b30c -r 8cfa04de2d03 usr.bin/mkubootimage/mkubootimage.c
--- a/usr.bin/mkubootimage/mkubootimage.c       Tue Sep 30 10:15:03 2014 +0000
+++ b/usr.bin/mkubootimage/mkubootimage.c       Tue Sep 30 10:21:50 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkubootimage.c,v 1.17 2012/12/29 15:11:56 jmcneill Exp $ */
+/* $NetBSD: mkubootimage.c,v 1.18 2014/09/30 10:21:50 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: mkubootimage.c,v 1.17 2012/12/29 15:11:56 jmcneill Exp $");
+__RCSID("$NetBSD: mkubootimage.c,v 1.18 2014/09/30 10:21:50 msaitoh Exp $");
 
 #include <sys/mman.h>
 #include <sys/stat.h>
@@ -106,9 +106,12 @@
        const char *name;
 } uboot_arch[] = {
        { IH_ARCH_ARM,          "arm" },
+       { IH_ARCH_I386,         "i386" },
        { IH_ARCH_MIPS,         "mips" },
        { IH_ARCH_MIPS64,       "mips64" },
        { IH_ARCH_PPC,          "powerpc" },
+       { IH_ARCH_OPENRISC,     "or1k" },
+       { IH_ARCH_ARM64,        "arm64" },
 };
 
 static enum uboot_image_arch
@@ -214,7 +217,8 @@
 __dead static void
 usage(void)
 {
-       fprintf(stderr, "usage: mkubootimage -A <arm|mips|mips64|powerpc>");
+       fprintf(stderr, "usage: mkubootimage -A "
+           "<arm|arm64|i386|mips|mips64|or1k|powerpc>");
        fprintf(stderr, " -C <none|bz2|gz|lzma|lzo>");
        fprintf(stderr, " -O <openbsd|netbsd|freebsd|linux>");
        fprintf(stderr, " -T <standalone|kernel|ramdisk|fs|script>");
diff -r 815c98e8b30c -r 8cfa04de2d03 usr.bin/mkubootimage/uboot.h
--- a/usr.bin/mkubootimage/uboot.h      Tue Sep 30 10:15:03 2014 +0000
+++ b/usr.bin/mkubootimage/uboot.h      Tue Sep 30 10:21:50 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uboot.h,v 1.5 2012/12/29 15:11:56 jmcneill Exp $ */
+/* $NetBSD: uboot.h,v 1.6 2014/09/30 10:21:50 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -39,9 +39,12 @@
 enum uboot_image_arch {
        IH_ARCH_UNKNOWN = 0,
        IH_ARCH_ARM = 2,
+       IH_ARCH_I386 = 3,
        IH_ARCH_MIPS = 5,
        IH_ARCH_MIPS64 = 6,
-       IH_ARCH_PPC = 7
+       IH_ARCH_PPC = 7,
+       IH_ARCH_OPENRISC = 21,
+       IH_ARCH_ARM64 = 22
 };
 
 enum uboot_image_type {



Home | Main Index | Thread Index | Old Index