[arch-commits] CVS update of extra/modules/fglrx (3 files)
Travis Willard
travis at archlinux.org
Thu Nov 22 04:33:02 UTC 2007
Date: Wednesday, November 21, 2007 @ 23:33:02
Author: travis
Path: /home/cvs-extra/extra/modules/fglrx
Removed: PKGBUILD (1.14) fglrx.install (1.4) kernel-2.6.23.patch (1.3)
Removing fglrx from the repo. Replaced by catalyst
---------------------+
PKGBUILD | 57 ------------------------
fglrx.install | 35 --------------
kernel-2.6.23.patch | 117 --------------------------------------------------
3 files changed, 209 deletions(-)
Index: extra/modules/fglrx/PKGBUILD
diff -u extra/modules/fglrx/PKGBUILD:1.14 extra/modules/fglrx/PKGBUILD:removed
--- extra/modules/fglrx/PKGBUILD:1.14 Mon Nov 19 07:33:05 2007
+++ extra/modules/fglrx/PKGBUILD Wed Nov 21 23:33:02 2007
@@ -1,57 +0,0 @@
-# $Id: PKGBUILD,v 1.14 2007/11/19 12:33:05 tpowa Exp $
-# Maintainer: Travis Willard <travisw at wmpub.ca>
-# Contributor: amdviaman
-
-pkgname=fglrx
-pkgver=8.42.3
-_kernel_version=2.6.23
-pkgrel=3
-pkgdesc="Proprietary AMD/ATI kernel drivers for Radeon brand cards. Stock kernel."
-arch=('i686' 'x86_64')
-url="http://www.ati.amd.com"
-#license provided by fglrx-utils package
-license=('custom:"fglrx"')
-depends=("fglrx-utils>=${pkgver}" "kernel26>=>=2.6.23.8-1")
-makedepends=()
-replaces=('ati-fglrx')
-install=${pkgname}.install
-source=(http://www2.ati.com/drivers/linux/ati-driver-installer-$pkgver-x86.x86_64.run kernel-2.6.23.patch)
-md5sums=('56ff087389b5594f0db9949354bb0698'
- '5e48ac61ee6a59f4b6b09d1686e192fd')
-
-_kernver=${_kernel_version}-ARCH
-
-build() {
- cd $startdir/src
-
- [ "$CARCH" = "i686" ] && _arch="x86"
- [ "$CARCH" = "x86_64" ] && _arch="x86_64"
-
- chmod a+x ati-driver-installer-$pkgver-x86.x86_64.run
- ./ati-driver-installer-$pkgver-x86.x86_64.run --extract archive_files
-
-
- cp $startdir/src/archive_files/arch/${_arch}/* $startdir/src/ -r
- cp $startdir/src/archive_files/common/* $startdir/src/ -r
-
- if [ "$CARCH" == "x86_64" ]; then
- cp $startdir/src/archive_files/x710_64a/* $startdir/src/ -r
- else
- cp $startdir/src/archive_files/x710/* $startdir/src/ -r
- fi
- cd $startdir/src
- cd $startdir/src/lib/modules/fglrx/build_mod/
- patch -Np0 -i $startdir/src/kernel-2.6.23.patch || return 1
-
- # Build the kernel module
- cp 2.6.x/Makefile .
- make -C /lib/modules/${_kernver}/build SUBDIRS="`pwd`" modules || return 1
-
- # Install the kernel module
- install -m 644 -D $startdir/src/lib/modules/fglrx/build_mod/fglrx.ko \
- $startdir/pkg/lib/modules/${_kernver}/video/fglrx.ko
-
- sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/$install
-
-}
-
Index: extra/modules/fglrx/fglrx.install
diff -u extra/modules/fglrx/fglrx.install:1.4 extra/modules/fglrx/fglrx.install:removed
--- extra/modules/fglrx/fglrx.install:1.4 Sat Oct 13 12:07:51 2007
+++ extra/modules/fglrx/fglrx.install Wed Nov 21 23:33:03 2007
@@ -1,35 +0,0 @@
-# This is a default template for a post-install scriptlet. You can
-# remove any functions you don't need (and this header).
-
-# arg 1: the new package version
-pre_install() {
- /bin/true
-}
-
-# arg 1: the new package version
-post_install() {
- echo "PLEASE NOTE:"
- echo "--------------------------------------------------------------"
- echo "You can use the tool 'aticonfig' to generate an xorg.conf file."
- echo "Remember to add fglrx to the MODULES list in /etc/rc.conf."
- echo "--------------------------------------------------------------"
- KERNEL_VERSION=2.6.23-ARCH
- depmod -v $KERNEL_VERSION > /dev/null 2>&1
-}
-
-# arg 1: the new package version
-# arg 2: the old package version
-post_upgrade() {
- KERNEL_VERSION=2.6.23-ARCH
- depmod -v $KERNEL_VERSION > /dev/null 2>&1
-}
-
-# arg 1: the old package version
-post_remove() {
- KERNEL_VERSION=2.6.23-ARCH
- depmod -v $KERNEL_VERSION > /dev/null 2>&1
-}
-
-op=$1
-shift
-$op $*
Index: extra/modules/fglrx/kernel-2.6.23.patch
diff -u extra/modules/fglrx/kernel-2.6.23.patch:1.3 extra/modules/fglrx/kernel-2.6.23.patch:removed
--- extra/modules/fglrx/kernel-2.6.23.patch:1.3 Tue Oct 23 21:26:52 2007
+++ extra/modules/fglrx/kernel-2.6.23.patch Wed Nov 21 23:33:03 2007
@@ -1,117 +0,0 @@
-8.43.3 for 2.6.23 compatibility
-
---- firegl_public.c.orig 2007-10-23 19:31:26.000000000 +0200
-+++ firegl_public.c 2007-10-23 19:32:07.000000000 +0200
-@@ -217,6 +217,56 @@
- #define preempt_enable()
- #endif
-
-+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,22)
-+#if defined(__i386__)
-+#define ptep_test_and_clear_dirty(vma, addr, ptep) ({ \
-+ int __ret = 0; \
-+ if (pte_dirty(*(ptep))) \
-+ __ret = test_and_clear_bit(_PAGE_BIT_DIRTY, \
-+ &(ptep)->pte_low); \
-+ if (__ret) \
-+ pte_update((vma)->vm_mm, addr, ptep); \
-+ __ret; \
-+})
-+
-+static inline int pte_read(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
-+static inline int pte_user(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
-+#ifdef CONFIG_X86_PAE
-+/*
-+ * Is the pte executable?
-+ */
-+static inline int pte_x(pte_t pte)
-+{
-+ return !(pte_val(pte) & _PAGE_NX);
-+}
-+
-+/*
-+ * All present user-pages with !NX bit are user-executable:
-+ */
-+static inline int pte_exec(pte_t pte)
-+{
-+ return pte_user(pte) && pte_x(pte);
-+}
-+#else
-+static inline int pte_exec(pte_t pte)
-+{
-+ return pte_user(pte);
-+}
-+#endif /* PAE */
-+
-+#elif defined(__x86_64__)
-+static inline int ptep_test_and_clear_dirty(struct vm_area_struct *vma,
-+ unsigned long addr, pte_t *ptep)
-+{
-+ if (!pte_dirty(*ptep))
-+ return 0;
-+ return test_and_clear_bit(_PAGE_BIT_DIRTY, &ptep->pte);
-+}
-+static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; }
-+static inline int pte_exec(pte_t pte) { return !(pte_val(pte) & _PAGE_NX); }
-+#endif
-+#endif
-+
- // ============================================================
- /* globals */
-
-@@ -2489,7 +2539,7 @@ void ATI_API_CALL __ke_put_vm_page_table
- #ifndef ptep_clear_flush_dirty
- #define ptep_clear_flush_dirty(__vma, __address, __ptep) \
- ({ \
-- int __dirty = ptep_test_and_clear_dirty(__ptep); \
-+ int __dirty = ptep_test_and_clear_dirty(__vma, __address, __ptep); \
- if (__dirty) \
- flush_tlb_page(__vma, __address); \
- __dirty; \
-@@ -2936,7 +2986,7 @@ int ATI_API_CALL __ke_request_irq(unsign
- {
- return request_irq(irq,
- (void(*)(int, void *, struct pt_regs *))handler,
-- SA_SHIRQ, dev_name, dev_id);
-+ IRQF_SHARED, dev_name, dev_id);
- }
-
- void ATI_API_CALL __ke_free_irq(unsigned int irq, void *dev_id)
-@@ -2959,7 +3009,7 @@ int ATI_API_CALL __ke_request_irq(unsign
- irq_handler_func = handler;
- return request_irq(irq,
- ke_irq_handler_wrap,
-- SA_SHIRQ, dev_name, dev_id);
-+ IRQF_SHARED, dev_name, dev_id);
- }
-
- void ATI_API_CALL __ke_free_irq(unsigned int irq, void *dev_id)
-@@ -5436,7 +5486,7 @@ unsigned int ATI_API_CALL KAS_Spinlock_R
- /** \brief Type definition of the structure describing Slab Cache object */
- typedef struct tag_kasSlabCache_t
- {
-- kmem_cache_t* cache; /* OS slab cache object */
-+ struct kmem_cache *cache; /* OS slab cache object */
- spinlock_t lock; /* OS spinlock object protecting the cache */
- unsigned int routine_type; /* Type of routine the cache might be accessed from */
- char name[14]; /* Cache object name (kernel 2.4 restricts its length to 19 chars) */
-@@ -5482,7 +5532,7 @@ unsigned int ATI_API_CALL KAS_SlabCache_
- DBG_TRACE("creating slab object '%s'", slabcache_obj->name);
-
- if ((slabcache_obj->cache =
-- kmem_cache_create(slabcache_obj->name, iEntrySize, 0, 0, NULL, NULL)))
-+ kmem_cache_create(slabcache_obj->name, iEntrySize, 0, 0, NULL)))
- {
- ret = 1;
- }
---- firegl_public.h.orig 2007-10-11 23:43:26.000000000 +0200
-+++ firegl_public.h 2007-10-11 23:53:08.000000000 +0200
-@@ -172,7 +172,7 @@
- #endif
-
- #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
--#if !defined(CONFIG_SMP) || defined(CONFIG_SUSPEND_SMP) // ACPI not working on older SMP kernel (prior to 2.6.13)
-+#if !defined(CONFIG_SMP) || defined(CONFIG_PM_SLEEP_SMP) // ACPI not working on older SMP kernel (prior to 2.6.13)
- #define FIREGL_POWER_MANAGEMENT
- #endif
- #endif
More information about the arch-commits
mailing list