Module Name: src
Committed By: jmcneill
Date: Sun Feb 10 15:56:57 UTC 2013
Modified Files:
src/distrib/utils/embedded/conf: beagleboard.conf
Log Message:
make sure kernel is installed as netbsd.ub
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/distrib/utils/embedded/conf/beagleboard.conf
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/utils/embedded/conf/beagleboard.conf
diff -u src/distrib/utils/embedded/conf/beagleboard.conf:1.6 src/distrib/utils/embedded/conf/beagleboard.conf:1.7
--- src/distrib/utils/embedded/conf/beagleboard.conf:1.6 Sat Feb 9 11:19:55 2013
+++ src/distrib/utils/embedded/conf/beagleboard.conf Sun Feb 10 15:56:57 2013
@@ -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 @@ populate() {
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
}