Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/mkubootimage Add mips/mips64 support.
details: https://anonhg.NetBSD.org/src/rev/270bee10c78e
branches: trunk
changeset: 761518:270bee10c78e
user: matt <matt%NetBSD.org@localhost>
date: Mon Jan 31 03:37:28 2011 +0000
description:
Add mips/mips64 support.
diffstat:
usr.bin/mkubootimage/mkubootimage.c | 8 +++++---
usr.bin/mkubootimage/uboot.h | 4 +++-
2 files changed, 8 insertions(+), 4 deletions(-)
diffs (54 lines):
diff -r 0ff71046578b -r 270bee10c78e usr.bin/mkubootimage/mkubootimage.c
--- a/usr.bin/mkubootimage/mkubootimage.c Mon Jan 31 00:19:33 2011 +0000
+++ b/usr.bin/mkubootimage/mkubootimage.c Mon Jan 31 03:37:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkubootimage.c,v 1.4 2010/07/10 07:48:25 kiyohara Exp $ */
+/* $NetBSD: mkubootimage.c,v 1.5 2011/01/31 03:37:28 matt 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.4 2010/07/10 07:48:25 kiyohara Exp $");
+__RCSID("$NetBSD: mkubootimage.c,v 1.5 2011/01/31 03:37:28 matt Exp $");
#include <sys/mman.h>
#include <sys/stat.h>
@@ -65,6 +65,8 @@
const char *name;
} uboot_arch[] = {
{ IH_ARCH_ARM, "arm" },
+ { IH_ARCH_MIPS, "mips" },
+ { IH_ARCH_MIPS64, "mips64" },
{ IH_ARCH_PPC, "powerpc" },
};
@@ -128,7 +130,7 @@
static void
usage(void)
{
- fprintf(stderr, "usage: mkubootimage -A <arm|powerpc>");
+ fprintf(stderr, "usage: mkubootimage -A <arm|mips|mips64|powerpc>");
fprintf(stderr, " -T <kernel|ramdisk|fs>");
fprintf(stderr, " -C <none|gz|bz2>");
fprintf(stderr, " -a <addr> [-e <ep>] -n <name>");
diff -r 0ff71046578b -r 270bee10c78e usr.bin/mkubootimage/uboot.h
--- a/usr.bin/mkubootimage/uboot.h Mon Jan 31 00:19:33 2011 +0000
+++ b/usr.bin/mkubootimage/uboot.h Mon Jan 31 03:37:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uboot.h,v 1.1 2010/06/18 18:55:48 jmcneill Exp $ */
+/* $NetBSD: uboot.h,v 1.2 2011/01/31 03:37:28 matt Exp $ */
/*-
* Copyright (c) 2010 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -33,6 +33,8 @@
enum uboot_image_arch {
IH_ARCH_UNKNOWN = 0,
IH_ARCH_ARM = 2,
+ IH_ARCH_MIPS = 5,
+ IH_ARCH_MIPS64 = 6,
IH_ARCH_PPC = 7
};
Home |
Main Index |
Thread Index |
Old Index