No empty .Rs/.Re
[netbsd-mini2440.git] / sys / external / bsd / drm / dist / scripts / create_lk_drm.sh
blobb18a951474ffdf67074eeb3c3f4e698dbbef74a8
1 #! /bin/bash
2 # script to create a Linux Kernel tree from the DRM tree for diffing etc..
4 # Original author - Dave Airlie (C) 2004 - airlied@linux.ie
5 # kernel_version to remove below (e.g. 2.6.24)
7 if [ $# -lt 2 ] ;then
8 echo usage: $0 output_dir kernel_version
9 exit 1
12 if [ ! -d shared-core -o ! -d linux-core ] ;then
13 echo not in DRM toplevel
14 exit 1
17 OUTDIR=$1/drivers/char/drm/
18 KERNEL_VERS=$2
19 echo "Copying kernel independent files"
20 mkdir -p $OUTDIR/.tmp
22 ( cd linux-core/ ; make drm_pciids.h )
23 cp shared-core/*.[ch] $OUTDIR/.tmp
24 cp linux-core/*.[ch] $OUTDIR/.tmp
25 cp linux-core/Makefile.kernel $OUTDIR/.tmp/Makefile
27 echo "Copying 2.6 Kernel files"
28 cp linux-core/Kconfig $OUTDIR/.tmp
30 ./scripts/drm-scripts-gentree.pl $KERNEL_VERS $OUTDIR/.tmp $OUTDIR
31 cd $OUTDIR
33 rm -rf .tmp
34 rm via_ds.[ch]
35 rm sis_ds.[ch]
37 cd -