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)
8 echo usage: $0 output_dir kernel_version
12 if [ ! -d shared-core -o ! -d linux-core ] ;then
13 echo not in DRM toplevel
17 DRMDIR=$1/drivers/gpu/drm/
18 HDRDIR=$1/include/drm/
20 echo "Copying kernel independent files"
24 ( cd linux-core/ ; make drm_pciids.h )
25 cp shared-core/*.[ch] $DRMDIR/.tmp
26 cp linux-core/*.[ch] $DRMDIR/.tmp
27 cp linux-core/Makefile.kernel $DRMDIR/.tmp/Makefile
29 echo "Copying 2.6 Kernel files"
30 cp linux-core/Kconfig $DRMDIR/.tmp
32 ./scripts/drm-scripts-gentree.pl $KERNEL_VERS $DRMDIR/.tmp $DRMDIR
33 mv $DRMDIR/drm*.h $HDRDIR
34 mv $DRMDIR/*_drm.h $HDRDIR
43 for i in radeon mach64 r128 mga i915 i810 via savage sis xgi nouveau tdfx ffb imagine