2004-03-23 04:06:47 -07:00
|
|
|
#! /bin/bash
|
|
|
|
# script to create a Linux Kernel tree from the DRM tree for diffing etc..
|
|
|
|
#
|
|
|
|
# Original author - Dave Airlie (C) 2004 - airlied@linux.ie
|
|
|
|
#
|
|
|
|
|
|
|
|
if [ $# -lt 2 ] ;then
|
|
|
|
echo usage: $0 output_dir [2.4\|2.6]
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2004-03-23 04:17:03 -07:00
|
|
|
if [ ! -d shared -o ! -d linux ] ;then
|
|
|
|
echo not in DRM toplevel
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2004-03-23 04:06:47 -07:00
|
|
|
OUTDIR=$1/drivers/char/drm/
|
|
|
|
VERS=$2
|
|
|
|
|
|
|
|
echo "Copying kernel independent files"
|
|
|
|
mkdir -p $OUTDIR
|
|
|
|
|
2004-05-09 00:36:55 -06:00
|
|
|
( cd linux/ ; make drm_pciids.h )
|
2005-09-30 01:10:16 -06:00
|
|
|
cp shared-core/*.[ch] $OUTDIR
|
|
|
|
cp linux-core/*.[ch] $OUTDIR
|
|
|
|
cp linux-core/Makefile.kernel $OUTDIR/Makefile
|
2004-03-23 04:06:47 -07:00
|
|
|
|
|
|
|
if [ $VERS = 2.4 ] ;then
|
|
|
|
echo "Copying 2.4 Kernel files"
|
|
|
|
cp linux/Config.in $OUTDIR/
|
|
|
|
elif [ $VERS = 2.6 ] ;then
|
|
|
|
echo "Copying 2.6 Kernel files"
|
2005-11-11 02:10:06 -07:00
|
|
|
cp linux-core/Kconfig $OUTDIR/
|
2004-03-23 04:06:47 -07:00
|
|
|
fi
|
|
|
|
|