Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc PR/56452: RVP: MAKEDEV should also create /dev/dri/rende...



details:   https://anonhg.NetBSD.org/src/rev/05f111b0d55c
branches:  trunk
changeset: 1024212:05f111b0d55c
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 12 17:19:20 2021 +0000

description:
PR/56452: RVP: MAKEDEV should also create /dev/dri/renderD* devices

diffstat:

 etc/MAKEDEV.tmpl |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r c49062b9b136 -r 05f111b0d55c etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl  Tue Oct 12 17:14:10 2021 +0000
+++ b/etc/MAKEDEV.tmpl  Tue Oct 12 17:19:20 2021 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: MAKEDEV.tmpl,v 1.225 2021/10/10 13:03:08 jmcneill Exp $
+#      $NetBSD: MAKEDEV.tmpl,v 1.226 2021/10/12 17:19:20 christos Exp $
 #
 # Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -2127,8 +2127,10 @@
 
 drm[0-9]*)
        unit=${i#drm}
+       unit2=$((unit + 128))
        makedir dri 755
        mkdev dri/card$unit c %drm_chr% $unit 660
+       mkdev dri/renderD${unit2} c %drm_chr% ${unit2} 660
        ;;
 
 drvctl)



Home | Main Index | Thread Index | Old Index