Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/mkubootimage Load address is not required for "ramdi...



details:   https://anonhg.NetBSD.org/src/rev/676086211903
branches:  trunk
changeset: 825235:676086211903
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Jul 05 01:09:17 2017 +0000

description:
Load address is not required for "ramdisk" images.

diffstat:

 usr.bin/mkubootimage/mkubootimage.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 07ee2ee4e38a -r 676086211903 usr.bin/mkubootimage/mkubootimage.c
--- a/usr.bin/mkubootimage/mkubootimage.c       Wed Jul 05 01:08:44 2017 +0000
+++ b/usr.bin/mkubootimage/mkubootimage.c       Wed Jul 05 01:09:17 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkubootimage.c,v 1.18 2014/09/30 10:21:50 msaitoh Exp $ */
+/* $NetBSD: mkubootimage.c,v 1.19 2017/07/05 01:09:17 jmcneill 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.18 2014/09/30 10:21:50 msaitoh Exp $");
+__RCSID("$NetBSD: mkubootimage.c,v 1.19 2017/07/05 01:09:17 jmcneill Exp $");
 
 #include <sys/mman.h>
 #include <sys/stat.h>
@@ -429,7 +429,8 @@
 
        if (image_arch == IH_ARCH_UNKNOWN ||
            image_type == IH_TYPE_UNKNOWN ||
-           (image_type != IH_TYPE_SCRIPT && image_loadaddr == 0) ||
+           (image_type != IH_TYPE_SCRIPT && image_type != IH_TYPE_RAMDISK &&
+            image_loadaddr == 0) ||
            image_name == NULL)
                usage();
 



Home | Main Index | Thread Index | Old Index