Module Name:    src
Committed By:   christos
Date:           Sat Feb  9 20:47:46 UTC 2013

Modified Files:
        src/distrib/utils/embedded/conf: rpi.conf

Log Message:
handle renaming and uncompressing the kernel


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/distrib/utils/embedded/conf/rpi.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/rpi.conf
diff -u src/distrib/utils/embedded/conf/rpi.conf:1.15 src/distrib/utils/embedded/conf/rpi.conf:1.16
--- src/distrib/utils/embedded/conf/rpi.conf:1.15	Sat Feb  9 06:07:26 2013
+++ src/distrib/utils/embedded/conf/rpi.conf	Sat Feb  9 15:47:46 2013
@@ -1,9 +1,9 @@
-# $NetBSD: rpi.conf,v 1.15 2013/02/09 11:07:26 jmcneill Exp $
+# $NetBSD: rpi.conf,v 1.16 2013/02/09 20:47:46 christos Exp $
 # Raspberry Pi customization script used by mkimage
 #
 
 board=rpi
-kernel=$src/sys/arch/evbarm/compile/RPI/kernel.img
+kernel=$src/sys/arch/evbarm/compile/RPI/netbsd-RPI.bin
 
 . ${DIR}/conf/evbarm.conf
 
@@ -42,7 +42,14 @@ EOF
 	fi
 
 	echo "${bar} installing kernel ${bar}"
-	cp ${kernel} ${mnt}/boot
+	case ${kernel} in
+	*.gz)
+		gzcat ${kernel} > ${mnt}/boot/kernel.img
+		;;
+	*)
+		cp ${kernel} ${mnt}/boot/kernel.img
+		;;
+	esac
 
 	echo -n "${bar} installing firmware files:"
 	(cd ${mnt}/boot &&

Reply via email to