mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-04 21:30:20 +01:00
clean up script to create an lk drm directory
This commit is contained in:
parent
28069ff10f
commit
df7378d7fa
1 changed files with 6 additions and 12 deletions
|
|
@ -4,32 +4,26 @@
|
|||
# Original author - Dave Airlie (C) 2004 - airlied@linux.ie
|
||||
#
|
||||
|
||||
if [ $# -lt 2 ] ;then
|
||||
echo usage: $0 output_dir [2.4\|2.6]
|
||||
if [ $# -lt 1 ] ;then
|
||||
echo usage: $0 output_dir
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d shared -o ! -d linux ] ;then
|
||||
if [ ! -d shared-core -o ! -d linux-core ] ;then
|
||||
echo not in DRM toplevel
|
||||
exit 1
|
||||
fi
|
||||
|
||||
OUTDIR=$1/drivers/char/drm/
|
||||
VERS=$2
|
||||
|
||||
echo "Copying kernel independent files"
|
||||
mkdir -p $OUTDIR
|
||||
|
||||
( cd linux/ ; make drm_pciids.h )
|
||||
( cd linux-core/ ; make drm_pciids.h )
|
||||
cp shared-core/*.[ch] $OUTDIR
|
||||
cp linux-core/*.[ch] $OUTDIR
|
||||
cp linux-core/Makefile.kernel $OUTDIR/Makefile
|
||||
|
||||
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"
|
||||
cp linux-core/Kconfig $OUTDIR/
|
||||
fi
|
||||
echo "Copying 2.6 Kernel files"
|
||||
cp linux-core/Kconfig $OUTDIR/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue