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