summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create_lk_drm.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/create_lk_drm.sh b/scripts/create_lk_drm.sh
index 4b57ce20..1028853a 100755
--- a/scripts/create_lk_drm.sh
+++ b/scripts/create_lk_drm.sh
@@ -27,3 +27,25 @@ cp linux-core/Makefile.kernel $OUTDIR/Makefile
echo "Copying 2.6 Kernel files"
cp linux-core/Kconfig $OUTDIR/
+cd $OUTDIR
+
+rm via_ds.[ch]
+for i in via*.[ch]
+do
+unifdef -D__linux__ -DVIA_HAVE_DMABLIT -DVIA_HAVE_CORE_MM $i > $i.tmp
+mv $i.tmp $i
+done
+
+rm sis_ds.[ch]
+for i in sis*.[ch]
+do
+unifdef -D__linux__ -DVIA_HAVE_DMABLIT -DSIS_HAVE_CORE_MM $i > $i.tmp
+mv $i.tmp $i
+done
+
+for i in i915*.[ch]
+do
+unifdef -D__linux__ -DI915_HAVE_FENCE -DI915_HAVE_BUFFER $i > $i.tmp
+mv $i.tmp $i
+done
+cd -