mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-06 04:48:22 +02:00
use unifdef to clean up some code
This commit is contained in:
parent
07635f26a9
commit
1a3316f667
1 changed files with 14 additions and 0 deletions
|
|
@ -27,3 +27,17 @@ cp linux-core/Makefile.kernel $OUTDIR/Makefile
|
|||
echo "Copying 2.6 Kernel files"
|
||||
cp linux-core/Kconfig $OUTDIR/
|
||||
|
||||
cd $OUTDIR
|
||||
|
||||
for i in via*.[ch]
|
||||
do
|
||||
unifdef -D__linux__ -DVIA_HAVE_DMABLIT -DVIA_HAVE_CORE_MM $i > $i.tmp
|
||||
mv $i.tmp $i
|
||||
done
|
||||
|
||||
for i in sis*.[ch]
|
||||
do
|
||||
unifdef -D__linux__ -DVIA_HAVE_DMABLIT -DSIS_HAVE_CORE_MM $i > $i.tmp
|
||||
mv $i.tmp $i
|
||||
done
|
||||
cd -
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue