1254885Sdumbbell#!/bin/sh 2254885Sdumbbell# $FreeBSD: releng/10.2/sys/modules/drm2/radeonkmsfw/gen-makefiles 254885 2013-08-25 19:37:15Z dumbbell $ 3254885Sdumbbell 4254885Sdumbbellset -e 5254885Sdumbbell 6254885Sdumbbellscriptdir=$(cd $(dirname $0) && pwd) 7254885Sdumbbellfwdir=$scriptdir/../../../contrib/dev/drm2/radeonkmsfw 8254885Sdumbbell 9254885Sdumbbellfor dir in $scriptdir/*; do 10254885Sdumbbell if [ ! -d $dir ]; then 11254885Sdumbbell continue 12254885Sdumbbell fi 13254885Sdumbbell rm -rf $dir 14254885Sdumbbelldone 15254885Sdumbbell 16254885Sdumbbellfor file in $fwdir/*.uu; do 17254885Sdumbbell img=$(basename $file) 18254885Sdumbbell img=${img%.bin.uu} 19254885Sdumbbell echo "Image: $img" 20254885Sdumbbell 21254885Sdumbbell mkdir -p $scriptdir/$img 22254885Sdumbbell cat > $scriptdir/$img/Makefile <<EOF 23254885Sdumbbell# \$FreeBSD: releng/10.2/sys/modules/drm2/radeonkmsfw/gen-makefiles 254885 2013-08-25 19:37:15Z dumbbell $ 24254885Sdumbbell 25254885SdumbbellKMOD= radeonkmsfw_$img 26254885SdumbbellIMG= $img 27254885Sdumbbell 28254885Sdumbbell.include <bsd.kmod.mk> 29254885SdumbbellEOF 30254885Sdumbbelldone 31