Cross Reference: drm2netbsd
xref: /src/sys/external/bsd/drm2/drm/drm2netbsd
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/sys/external/bsd/drm2/drm/
drm2netbsd revision 1.5
11.1Sriastrad#!/bin/sh
21.1Sriastrad
31.5Sriastrad#	$NetBSD: drm2netbsd,v 1.5 2021/12/19 10:46:17 riastradh Exp $
41.1Sriastrad#
51.1Sriastrad# $ /path/to/drm2netbsd > /path/to/files.drm.new
61.1Sriastrad#
71.1Sriastrad# Run from the directory that came from drivers/gpu/drm.
81.1Sriastrad
91.1Sriastradset -Ceu
101.1Sriastrad
111.1Sriastrad# Location of the DRMKMS sources relative to $NETBSDSRCDIR.
121.1Sriastraddrmkms_top=external/bsd/drm2/dist/drm
131.1Sriastrad
141.1Sriastrad# config(5) flag for the DRMKMS driver.
151.1Sriastraddrmkms_flag=drmkms
161.1Sriastrad
171.1Sriastradenv CONFIG_PCI=y \
181.1Sriastradenv CONFIG_AGP=y \
191.2Sriastradenv CONFIG_DRM_FBDEV_EMULATION=y \
201.4Sriastradenv CONFIG_DRM_GEM_CMA_HELPER=y \
211.4Sriastradenv CONFIG_DRM_PANEL=y \
221.3Sriastradenv CONFIG_DRM_VM=y \
231.1Sriastradmake -f Makefile -V '$(drm-y)' -V '$(drm_kms_helper-y)' \
241.1Sriastrad| tr ' ' '\n' \
251.1Sriastrad| grep -v '^$' \
261.5Sriastrad| {
271.5Sriastrad	sed -e 's,\.o$,.c,'
281.5Sriastrad	# Separate objects.
291.5Sriastrad	echo drm_panel_orientation_quirks.c
301.5Sriastrad} | sort -u \
311.1Sriastrad| while read f; do
321.1Sriastrad	printf 'file\t%s\t%s\n' "$drmkms_top/$f" "$drmkms_flag"
331.1Sriastraddone
34

Indexes created Sat Dec 20 21:09:36 GMT 2025