Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/embedded tidy up, fix usage
details: https://anonhg.NetBSD.org/src/rev/1ad32f3137cc
branches: trunk
changeset: 787630:1ad32f3137cc
user: christos <christos%NetBSD.org@localhost>
date: Thu Jun 27 03:00:53 2013 +0000
description:
tidy up, fix usage
diffstat:
distrib/utils/embedded/mkimage | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 51c61e5c622b -r 1ad32f3137cc distrib/utils/embedded/mkimage
--- a/distrib/utils/embedded/mkimage Thu Jun 27 02:38:39 2013 +0000
+++ b/distrib/utils/embedded/mkimage Thu Jun 27 03:00:53 2013 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mkimage,v 1.40 2013/06/16 13:47:42 jakllsch Exp $
+# $NetBSD: mkimage,v 1.41 2013/06/27 03:00:53 christos Exp $
#
# Copyright (c) 2013 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -69,7 +69,7 @@
usage() {
cat << EOF 1>&2
-Usage: $PROG -h <host-arch> [-bmx] [-K <kerneldir>] [-S <srcdir>] [-D <destdir>] [-c <custom-files-dir>] [-s <Mb size>] [<image>]
+Usage: $PROG -h <host-arch> [-bdmx] [-K <kerneldir>] [-S <srcdir>] [-D <destdir>] [-c <custom-files-dir>] [-s <Mb size>] [<image>]
-b Boot only, no sets loaded
-d Add the debug sets
@@ -115,7 +115,7 @@
D) release="$OPTARG";;
K) kernel="$OPTARG";;
S) ;;
- b) bootonly="true";;
+ b) bootonly=true;;
d) dsets=true
selected_sets="$selected_sets debug"
if $xsets; then
@@ -170,15 +170,15 @@
if [ -n ${msdosid} ]; then
echo ${bar} Populating msdos filesystem ${bar}
${MAKEFS} -N ${release}/etc -t msdos \
- -O $((${init} / 2))m -s $((${boot} / 2 + ${init} / 2))m ${image} ${mnt}/boot
+ -O $((${init} / 2))m -s $((${boot} / 2 + ${init} / 2))m \
+ ${image} ${mnt}/boot
fi
if [ -z "$bootonly" ]; then
echo ${bar} Populating ffs filesystem ${bar}
${MAKEFS} -N ${release}/etc -t ffs -rx \
-O $(((${init} + ${boot} + ${swap}) / 2))m \
- -o d=4096 \
- -b $((${extra}))m \
+ -o d=4096 -b $((${extra}))m \
-F "$tmp/selected_sets" ${image} "${release}" "${mnt}"
fi
Home |
Main Index |
Thread Index |
Old Index