diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-02-12 10:26:35 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-02-12 10:26:35 +0000 |
commit | 82af99a8c15244070f101226023a29fb32e79109 (patch) | |
tree | 2f377fa261262ec5d5a55555b32587bb2b2cca9a /etc/MAKEDEV.common | |
parent | 3777cb7b0368ec75cbcfaddb668e1323c8b80250 (diff) |
create /dev/ drm nodes with the same names as linux
This was proposed by Emil Velikov to simplify libdrm and will remove the
need for some patches in ports.
/dev/drm0 -> /dev/dri/card0
/dev/drmR128 -> /dev/dri/renderD128
The previous names will remain for a period of time and will later be
removed. Major and minor numbers remain the same.
libdrm will not be changed to use the new names until known privsep
and sandbox use has been updated to allow the new names.
ok deraadt@
Diffstat (limited to 'etc/MAKEDEV.common')
-rw-r--r-- | etc/MAKEDEV.common | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/etc/MAKEDEV.common b/etc/MAKEDEV.common index b5ead877837..196d73a2341 100644 --- a/etc/MAKEDEV.common +++ b/etc/MAKEDEV.common @@ -1,4 +1,4 @@ -vers(a, {-$OpenBSD: MAKEDEV.common,v 1.112 2021/01/23 05:08:33 thfr Exp $-})dnl +vers(a, {-$OpenBSD: MAKEDEV.common,v 1.113 2021/02/12 10:26:33 jsg Exp $-})dnl dnl dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org> dnl @@ -343,6 +343,17 @@ _mkdev(pty, pty*, {-if [ $U -gt 15 ]; then n=Add($n, 1) done-})dnl __devitem(dc, dc*, {-4 channel serial interface (keyboard{-,-} mouse{-,-}modem{-,-} printer)-})dnl +__devitem(dri, dri, Direct Rendering Infrastructure, drm)dnl +_mkdev(dri, dri, {-RMlist[${#RMlist[*]}]=";mkdir -p dri;rm -f" + n=0 + while [ $n -lt 4 ] + do + M dri/card$n c major_dri_c $n 600 + r=Add($n, 128) + M dri/renderD$r c major_dri_c $r 600 + n=Add($n, 1) + done + MKlist[${#MKlist[*]}]=";chmod 555 dri"-})dnl __devitem(drm, drm*, {-Direct Rendering Manager-})dnl _mkdev(drm, drm*, {-M drm$U c major_drm_c $U 600 r=Add($U, 128) |