30 lines
599 B
Bash
Executable File
30 lines
599 B
Bash
Executable File
#! /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 1 ] ;then
|
|
echo usage: $0 output_dir
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -d shared-core -o ! -d linux-core ] ;then
|
|
echo not in DRM toplevel
|
|
exit 1
|
|
fi
|
|
|
|
OUTDIR=$1/drivers/char/drm/
|
|
|
|
echo "Copying kernel independent files"
|
|
mkdir -p $OUTDIR
|
|
|
|
( cd linux-core/ ; make drm_pciids.h )
|
|
cp shared-core/*.[ch] $OUTDIR
|
|
cp linux-core/*.[ch] $OUTDIR
|
|
cp linux-core/Makefile.kernel $OUTDIR/Makefile
|
|
|
|
echo "Copying 2.6 Kernel files"
|
|
cp linux-core/Kconfig $OUTDIR/
|
|
|