summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDave Airlie <airlied@optimus.localdomain>2006-12-19 17:57:16 +1100
committerDave Airlie <airlied@linux.ie>2006-12-19 17:58:24 +1100
commit1a3316f667963fca2f9a3bffcbee39cb01bf5f09 (patch)
treecc8c7f1ed419e53165d6ef8fd4830ee1c664a5ee /scripts
parent07635f26a9310d2a4f0f65c5e773e6cfa92346bc (diff)
use unifdef to clean up some code
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create_lk_drm.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/create_lk_drm.sh b/scripts/create_lk_drm.sh
index 4b57ce20..2f00d7a3 100755
--- a/scripts/create_lk_drm.sh
+++ b/scripts/create_lk_drm.sh
@@ -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 -