Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/embedded/conf make sure kernel is installed as...
details: https://anonhg.NetBSD.org/src/rev/a35ec0a19f49
branches: trunk
changeset: 784814:a35ec0a19f49
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Feb 10 15:56:57 2013 +0000
description:
make sure kernel is installed as netbsd.ub
diffstat:
distrib/utils/embedded/conf/beagleboard.conf | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r d7b04af879f4 -r a35ec0a19f49 distrib/utils/embedded/conf/beagleboard.conf
--- a/distrib/utils/embedded/conf/beagleboard.conf Sun Feb 10 15:51:59 2013 +0000
+++ b/distrib/utils/embedded/conf/beagleboard.conf Sun Feb 10 15:56:57 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: beagleboard.conf,v 1.6 2013/02/09 11:19:55 jmcneill Exp $
+# $NetBSD: beagleboard.conf,v 1.7 2013/02/10 15:56:57 jmcneill Exp $
# BeagleBoard customization script used by mkimage
#
board=beagleboard
@@ -33,10 +33,17 @@
loaduimage=fatload mmc 0 ${loadaddr} ${kernelimg}; bootm ${loadaddr} root=ld0a
EOF
if [ ! -f "${kernel}" ]; then
- echo ${PROG}: Missing ${kernel} 1>&1
+ echo ${PROG}: Missing ${kernel} 1>&2
exit 1
fi
- echo "${bar} installing kernel ${bar}"
- cp "${kernel}" "${mnt}/boot"
+ echo "${bar} installing BEAGLEBOARD kernel to /boot ${bar}"
+ case "${kernel}" in
+ *.gz)
+ gzcat "${kernel}" > "${mnt}/boot/${kernelimg}"
+ ;;
+ *)
+ cp "${kernel}" "${mnt}/boot/${kernelimg}"
+ ;;
+ esac
}
Home |
Main Index |
Thread Index |
Old Index