Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/drm New script to generate files.drmkm...



details:   https://anonhg.NetBSD.org/src/rev/c0c2b93a182c
branches:  trunk
changeset: 834754:c0c2b93a182c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 00:46:32 2018 +0000

description:
New script to generate files.drmkms from Linux Makefile.

diffstat:

 sys/external/bsd/drm2/drm/drm2netbsd |  26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diffs (30 lines):

diff -r 9fa07bb2a778 -r c0c2b93a182c sys/external/bsd/drm2/drm/drm2netbsd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/external/bsd/drm2/drm/drm2netbsd      Mon Aug 27 00:46:32 2018 +0000
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+#      $NetBSD: drm2netbsd,v 1.1 2018/08/27 00:46:32 riastradh Exp $
+#
+# $ /path/to/drm2netbsd > /path/to/files.drm.new
+#
+# Run from the directory that came from drivers/gpu/drm.
+
+set -Ceu
+
+# Location of the DRMKMS sources relative to $NETBSDSRCDIR.
+drmkms_top=external/bsd/drm2/dist/drm
+
+# config(5) flag for the DRMKMS driver.
+drmkms_flag=drmkms
+
+env CONFIG_PCI=y \
+env CONFIG_AGP=y \
+make -f Makefile -V '$(drm-y)' -V '$(drm_kms_helper-y)' \
+| tr ' ' '\n' \
+| grep -v '^$' \
+| sed -e 's,\.o$,.c,' \
+| sort -u \
+| while read f; do
+       printf 'file\t%s\t%s\n' "$drmkms_top/$f" "$drmkms_flag"
+done



Home | Main Index | Thread Index | Old Index