1 #!/bin/sh 2 3 # $NetBSD: i915drmkms2netbsd,v 1.2.6.2 2019/06/10 22:08:30 christos Exp $ 4 # 5 # $ /path/to/i915drmkms2netbsd > /path/to/files.i915drmkms.new 6 # 7 # Run from the top-level i915drmkms source directory. 8 9 set -Ceu 10 11 # Location of the i915drmkms sources relative to $NETBSDSRCDIR. 12 i915drmkms_top=external/bsd/drm2/dist/drm/i915 13 14 # config(5) flag for the i915drmkms driver. 15 i915drmkms_flag=i915drmkms 16 17 env CONFIG_ACPI=y \ 18 env CONFIG_DRM_FBDEV_EMULATION=y \ 19 env src=. \ 20 make -f Makefile -V '$(i915-y)' \ 21 | tr ' ' '\n' \ 22 | grep -v '^$' \ 23 | sed -e 's,\.o$,.c,' \ 24 | sort -u \ 25 | while read f; do 26 printf 'file\t%s\t%s\n' "$i915drmkms_top/$f" "$i915drmkms_flag" 27 done 28