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/b7bb0445ae7e
branches:  trunk
changeset: 365673:b7bb0445ae7e
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 1802aa1e72ac -r b7bb0445ae7e 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