Add mips/mips64 support.
This commit is contained in:
parent
17b8402a39
commit
b86170a11c
@ -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>
|
||||
@ -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 @@ struct uboot_arch {
|
||||
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 @@ get_comp(const char *name)
|
||||
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>");
|
||||
|
@ -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>
|
||||
@ -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
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user