i915drmkms2netbsd revision 1.4
11.1Sriastrad#!/bin/sh 21.1Sriastrad 31.4Sriastrad# $NetBSD: i915drmkms2netbsd,v 1.4 2024/07/02 20:09:21 riastradh Exp $ 41.1Sriastrad# 51.1Sriastrad# $ /path/to/i915drmkms2netbsd > /path/to/files.i915drmkms.new 61.1Sriastrad# 71.1Sriastrad# Run from the top-level i915drmkms source directory. 81.1Sriastrad 91.1Sriastradset -Ceu 101.1Sriastrad 111.3Sriastrad: ${GMAKE:=gmake} 121.3Sriastrad 131.1Sriastrad# Location of the i915drmkms sources relative to $NETBSDSRCDIR. 141.1Sriastradi915drmkms_top=external/bsd/drm2/dist/drm/i915 151.1Sriastrad 161.1Sriastrad# config(5) flag for the i915drmkms driver. 171.1Sriastradi915drmkms_flag=i915drmkms 181.1Sriastrad 191.3Sriastrad{ 201.3Sriastrad printf 'show-i915-y:\n' 211.3Sriastrad printf '\t@echo $(i915-y)\n' 221.3Sriastrad printf 'include Makefile\n' 231.3Sriastrad} | env \ 241.3Sriastrad env CONFIG_ACPI=y \ 251.4Sriastrad env CONFIG_COMPAT=y \ 261.4Sriastrad env CONFIG_PERF_EVENTS=y \ 271.4Sriastrad env CONFIG_X86=y \ 281.4Sriastrad env CONFIG_HWMON=y \ 291.4Sriastrad env CONFIG_DRM_I915_PXP=y \ 301.4Sriastrad env CONFIG_DRM_I915_CAPTURE_ERROR=y \ 311.4Sriastrad env CONFIG_DRM_I915=y \ 321.3Sriastrad env CONFIG_DRM_FBDEV_EMULATION=y \ 331.3Sriastrad env src=. \ 341.3Sriastrad ${GMAKE} -f - -s show-i915-y \ 351.1Sriastrad| tr ' ' '\n' \ 361.1Sriastrad| grep -v '^$' \ 371.1Sriastrad| sed -e 's,\.o$,.c,' \ 381.1Sriastrad| sort -u \ 391.1Sriastrad| while read f; do 401.1Sriastrad printf 'file\t%s\t%s\n' "$i915drmkms_top/$f" "$i915drmkms_flag" 411.1Sriastraddone 42