Create the character device for spiflash, in addition to the block device. trunk
authorthorpej <thorpej@NetBSD.org>
Thu, 19 Sep 2019 01:44:48 +0000
branchtrunk
changeset 454497 219ff5bdcf57
parent 454496 9be1cc9b38f8
child 454498 68167c365354
Create the character device for spiflash, in addition to the block device. This is needed for getdiskrawname() to DTRT (for installboot(8)). XXX pullup-9
etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl	Thu Sep 19 01:25:29 2019 +0000
+++ b/etc/MAKEDEV.tmpl	Thu Sep 19 01:44:48 2019 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#	$NetBSD: MAKEDEV.tmpl,v 1.207 2019/09/15 12:54:21 ryoon Exp $
+#	$NetBSD: MAKEDEV.tmpl,v 1.208 2019/09/19 01:44:48 thorpej Exp $
 #
 # Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1219,6 +1219,7 @@
 	unit=${i#spiflash}
 	spiflash=spiflash$unit
 	mkdev spiflash$unit b %spiflash_blk% $unit
+	mkdev rspiflash$unit c %spiflash_chr% $unit
 	;;
 
 altmem[0-9]*)