From 1a3316f667963fca2f9a3bffcbee39cb01bf5f09 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 19 Dec 2006 17:57:16 +1100 Subject: use unifdef to clean up some code --- scripts/create_lk_drm.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scripts/create_lk_drm.sh') 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 - -- cgit v1.2.3 From 98799f862e58e02ef07f0d0db0863e7c91c7e5b0 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 19 Dec 2006 21:48:06 +1100 Subject: fixup i915 defines in create script --- scripts/create_lk_drm.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/create_lk_drm.sh') diff --git a/scripts/create_lk_drm.sh b/scripts/create_lk_drm.sh index 2f00d7a3..e2cef8d1 100755 --- a/scripts/create_lk_drm.sh +++ b/scripts/create_lk_drm.sh @@ -40,4 +40,10 @@ 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 - -- cgit v1.2.3 From 3b7508d1bf2c78f19d882beffa6d8b4f58bd19a8 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 20 Dec 2006 10:22:43 +1100 Subject: remove unused via/sis files from lk build --- scripts/create_lk_drm.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/create_lk_drm.sh') diff --git a/scripts/create_lk_drm.sh b/scripts/create_lk_drm.sh index e2cef8d1..1028853a 100755 --- a/scripts/create_lk_drm.sh +++ b/scripts/create_lk_drm.sh @@ -29,12 +29,14 @@ 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 -- cgit v1.2.3