Commit 518b598d authored by philm's avatar philm

merge kernel-dev to testing

 - update all extramodules
 - all modules get installed to '{pkgdir}/lib/modules/'
parent ac49c807
......@@ -4,18 +4,18 @@
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# Find the kernel name inside the chroot
_kernver=`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
_extramodules=extramodules-`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
_kver="$(cat /lib/modules/${_extramodules}/version)"
pkgname=catalyst
pkgver=11.11
pkgrel=2
pkgrel=4
pkgdesc="AMD/ATI Catalyst drivers for linux. fglrx kernel module only"
arch=('i686' 'x86_64')
url="http://www.ati.amd.com"
license=('custom')
depends=('linux>=3.1' 'linux<3.2' 'catalyst-utils')
depends=('linux>=3.2' 'linux<3.3' 'catalyst-utils')
makedepends=('gcc-libs' 'gcc>4.0.0' 'make' 'linux-headers')
conflicts=('catalyst-test' 'nvidia' 'xf86-video-ati' 'xf86-video-radeonhd' 'ati-dri')
install=${pkgname}.install
......@@ -45,6 +45,7 @@ build() {
if [ "${CARCH}" = "x86_64" ]; then
BUILDARCH=x86_64
_archdir=x86_64
sed -i -e s'~COMPAT_ALLOC_USER_SPACE~arch_compat_alloc_user_space~' ${srcdir}/archive_files/common/lib/modules/fglrx/build_mod//kcl_ioctl.c
fi
if [ "${CARCH}" = "i686" ]; then
BUILDARCH=i386
......@@ -56,32 +57,33 @@ build() {
msg "Applying patch(es) ..."
## makefile patch to choose arch_compat_alloc_user_space or older compat_alloc_user_space
## works only in combination with ati_make.sh script
patch -Np1 -i ../makefile_compat.patch || return 1
patch -Np1 -i ../makefile_compat.patch
#if [[ ${_kernver:0:6} < "2.6.39" ]] && [[ `cat /lib/modules/${_kernver}/build/.config | grep -c CONFIG_BKL=y` = 0 ]]; then
# patch -Np1 -i ../no_bkl.patch || return 1
#if [[ ${_kver:0:6} < "2.6.39" ]] && [[ `cat /lib/modules/${_kver}/build/.config | grep -c CONFIG_BKL=y` = 0 ]]; then
# patch -Np1 -i ../no_bkl.patch
#fi
cd "${srcdir}/archive_files/common/lib/modules/fglrx/build_mod"
cp "${srcdir}/archive_files/arch/${_archdir}/lib/modules/fglrx/build_mod/libfglrx_ip.a" . || return 1
cp 2.6.x/Makefile . || return 1
cp "${srcdir}/archive_files/arch/${_archdir}/lib/modules/fglrx/build_mod/libfglrx_ip.a" .
cp 2.6.x/Makefile .
msg "Compiling fglrx module ..."
## Compile module using _ati_check variables
make -C /lib/modules/${_kernver}/build SUBDIRS="`pwd`" ARCH=${BUILDARCH} \
make -C /lib/modules/${_kver}/build SUBDIRS="`pwd`" ARCH=${BUILDARCH} \
MODFLAGS="-DMODULE -DATI -DFGL -DPAGE_ATTR_FIX=$PAGE_ATTR_FIX -DCOMPAT_ALLOC_USER_SPACE=$COMPAT_ALLOC_USER_SPACE $def_smp $def_modversions" \
PAGE_ATTR_FIX=$PAGE_ATTR_FIX COMPAT_ALLOC_USER_SPACE=$COMPAT_ALLOC_USER_SPACE modules || return 1
PAGE_ATTR_FIX=$PAGE_ATTR_FIX COMPAT_ALLOC_USER_SPACE=$COMPAT_ALLOC_USER_SPACE modules
}
package() {
cd "${srcdir}/archive_files/common/lib/modules/fglrx/build_mod"
install -m755 -d "${pkgdir}/lib/modules/${_kernver}/video/" || return 1
install -m644 fglrx.ko "${pkgdir}/lib/modules/${_kernver}/video/" || return 1
install -m755 -d "${pkgdir}/lib/modules/${_extramodules}"
install -m644 fglrx.ko "${pkgdir}/lib/modules/${_extramodules}"
gzip "${pkgdir}/lib/modules/${_extramodules}/fglrx.ko"
## License
## License
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 "${srcdir}/archive_files/LICENSE.TXT" "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
install -m644 "${srcdir}/archive_files/LICENSE.TXT" "${pkgdir}/usr/share/licenses/${pkgname}/"
sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/" $startdir/*.install
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" ${startdir}/*.install
}
......@@ -7,20 +7,23 @@ remove_hook(){
# remove hook fglrx
sed '/^HOOKS/s/ *fglrx//' -i etc/mkinitcpio.conf
# remove heads
sed '/^SyncFirst/s/ *kernel26-headers//' -i etc/pacman.conf
sed '/^SyncFirst/s/ *linux-headers//' -i etc/pacman.conf
}
post_install() {
depmod "${KERNEL_VERSION}"
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_upgrade() {
remove_hook
depmod "${KERNEL_VERSION}"
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_remove() {
depmod "${KERNEL_VERSION}"
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo "----------------------------------------------------------------"
echo "Don't forget to remove fglrx from MODULES array of /etc/rc.conf"
echo "----------------------------------------------------------------"
......
......@@ -8,17 +8,18 @@
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
# Find the kernel name inside the chroot
_kernver=`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
_extramodules=extramodules-`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
_kver="$(cat /lib/modules/${_extramodules}/version)"
pkgname=madwifi
pkgver=0.9.4.4173
_ver=0.9.4-r4173-20111008
pkgrel=2
pkgrel=5
pkgdesc="Madwifi drivers for Atheros wireless chipsets"
arch=(i686 x86_64)
license=('GPL')
url="http://madwifi-project.org"
depends=('madwifi-utils' 'linux>=3.1' 'linux<3.2')
depends=('madwifi-utils' 'linux>=3.2' 'linux<3.3')
makedepends=('linux-headers' 'sharutils')
install=madwifi-ng.install
# subversion source: svn checkout http:/madwifi-project.org/svn/madwifi/trunk madwifi
......@@ -29,21 +30,30 @@ groups=("linux-modules")
conflicts=("madwifi")
replaces=("madwifi")
build() {
[ "${CARCH}" = "i686" ] && export ARCH=i386
build()
{
cd madwifi-$_ver
#cd $startdir/src/madwifi-$pkgver
cd $startdir/src/madwifi-$_ver
# kernel 3.2 abi change
sed -i -e "s/.ndo_set_multicast_list/.ndo_set_rx_mode/" ath/if_ath.c
sed -i -e "s/ieee80211_set_multicast_list/ieee80211_set_rx_mode/" net80211/ieee80211.c
sed -i -e "s/ndo_set_multicast_list/ndo_set_rx_mode/" net80211/ieee80211.c
make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules|| return 1
make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules \
DESTDIR=$startdir/pkg KERNELRELEASE=$_kernver install-modules
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
sed -i 's/-Werror//' Makefile.inc
sed -i 's/\[4-9\]\\\./[0-9]-/' Makefile
make KERNELPATH=/lib/modules/${_kver}/build KERNELRELEASE=${_kver} modules
}
# install to wireless kernel directory
mkdir -p $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
mv $startdir/pkg/lib/modules/$_kernver/net/* $startdir/pkg/lib/modules/$_kernver/kernel/drivers/net/wireless/madwifi
rm -r $startdir/pkg/lib/modules/$_kernver/net/
package()
{
cd madwifi-$_ver
make KERNELPATH=/lib/modules/${_kver}/build KERNELRELEASE=${_kver} modules \
DESTDIR="${pkgdir}" KERNELRELEASE=${_kver} install-modules
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" ${startdir}/*.install
mkdir -p "${pkgdir}/lib/modules/$_extramodules"
mv "${pkgdir}"/lib/modules/${_kver}/net/* "${pkgdir}/lib/modules/$_extramodules"
rm -r "${pkgdir}"/lib/modules/${_kver}
find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
}
md5sums=('18cd1c574e0fa66eb4396f92f0700a7e')
--- ath/if_athvar.h~ 2009-06-13 09:38:53.000000000 +0200
+++ ath/if_athvar.h 2009-06-13 09:38:53.000000000 +0200
@@ -103,11 +103,6 @@
/*
* Guess how the interrupt handler should work.
*/
-#if !defined(IRQ_NONE)
-typedef void irqreturn_t;
-#define IRQ_NONE
-#define IRQ_HANDLED
-#endif /* !defined(IRQ_NONE) */
#ifndef SET_MODULE_OWNER
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
post_install() {
KERNEL_VERSION='3.1-CHAKRA'
depmod -ae $KERNEL_VERSION > /dev/null 2>&1
post_install()
{
post_upgrade
}
post_upgrade() {
KERNEL_VERSION='3.1-CHAKRA'
depmod -ae $KERNEL_VERSION > /dev/null 2>&1
post_upgrade()
{
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_remove() {
KERNEL_VERSION='3.1-CHAKRA'
depmod -ae $KERNEL_VERSION > /dev/null 2>&1
post_remove()
{
post_upgrade
}
--- nv.c.orig 2010-10-23 10:41:00.433000009 +0200
+++ nv.c 2010-10-23 10:43:54.983000023 +0200
@@ -249,7 +249,11 @@ static struct pci_driver nv_pci_driver =
static struct file_operations nv_fops = {
.owner = THIS_MODULE,
.poll = nv_kern_poll,
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)
+ .unlocked_ioctl = nv_kern_unlocked_ioctl,
+#else
.ioctl = nv_kern_ioctl,
+#endif
#if defined(HAVE_UNLOCKED_IOCTL)
.unlocked_ioctl = nv_kern_unlocked_ioctl,
#endif
......@@ -4,20 +4,18 @@
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
# Find the kernel name inside the chroot
_extramodules=extramodules-`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
_kver="$(cat /lib/modules/${_extramodules}/version)"
pkgname=nvidia-173xx
pkgver=173.14.31
pkgrel=4
# Find the kernel name inside the chroot
_kernver=`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
pkgdesc="NVIDIA drivers for linux, 173xx branch."
pkgrel=6
arch=('i686' 'x86_64')
[ "$CARCH" = "i686" ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=('linux>=3.1' 'linux<3.2' 'nvidia-173xx-utils')
depends=('linux>=3.2' 'linux<3.3' 'nvidia-173xx-utils')
makedepends=('linux-headers')
conflicts=('nvidia-96xx' 'nvidia' 'nvidia-173xx')
license=('custom')
......@@ -27,20 +25,18 @@ md5sums=('01cd3b91196cd4495f56c34494f310b5')
[ "$CARCH" = "x86_64" ] && md5sums=('d53e8faf8ac90ad98b8998f25f121535')
build() {
cd $srcdir
sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
cd usr/src/nv
ln -s Makefile.kbuild Makefile
make module KERNDIR=/lib/modules/${_kernver} SYSSRC=/usr/src/linux-${_kernver}
sh "NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run" --extract-only
cd "NVIDIA-Linux-$ARCH-${pkgver}-pkg0/usr/src/nv/"
ln -s Makefile.kbuild Makefile
make SYSSRC=/lib/modules/${_kver}/build module || return 1
}
package() {
cd $srcdir/NVIDIA-Linux-$ARCH-${pkgver}-pkg0/usr/src/nv/
mkdir -p $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/
install -m644 nvidia.ko $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/
mkdir -p $pkgdir/etc/modprobe.d
echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf || return 1
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install
cd "NVIDIA-Linux-$ARCH-${pkgver}-pkg0/usr/src/nv/"
mkdir -p $pkgdir//lib/modules/${_extramodules}
install -m644 nvidia.ko $pkgdir/lib/modules/${_extramodules}
install -d -m755 "${pkgdir}/etc/modprobe.d"
echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist.conf"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install"
gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
}
post_install() {
KERNEL_VERSION='3.1-CHAKRA'
depmod $KERNEL_VERSION
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo 'In order to use nvidia module, reboot the system.'
}
post_upgrade() {
post_install
rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_remove() {
KERNEL_VERSION='3.1-CHAKRA'
depmod $KERNEL_VERSION
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
......@@ -4,22 +4,19 @@
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
# Find the kernel name inside the chroot
_extramodules=extramodules-`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
_kver="$(cat /lib/modules/${_extramodules}/version)"
pkgname=nvidia-96xx
pkgver=96.43.20
# Find the kernel name inside the chroot
_kernver=`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
pkgrel=4
pkgrel=6
pkgdesc="NVIDIA drivers for kernel26, 96xx branch."
arch=('i686' 'x86_64')
[ "$CARCH" = "i686" ] && ARCH=x86
[ "$CARCH" = "x86_64" ] && ARCH=x86_64
url="http://www.nvidia.com/"
depends=('linux>=3.1' 'linux<3.2' 'nvidia-96xx-utils')
depends=('linux>=3.2' 'linux<3.3' 'nvidia-96xx-utils')
makedepends=('linux-headers')
conflicts=('nvidia-96xx' 'nvidia' 'nvidia-173xx')
license=('custom')
......@@ -29,15 +26,18 @@ md5sums=('875cc011385ea26ab5edd54a9b65a003')
[ "$CARCH" = "x86_64" ] && md5sums=('df3c87005487bdf54a6c5b783ff373db')
build() {
cd $srcdir
sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
cd usr/src/nv/
ln -s Makefile.kbuild Makefile
make SYSSRC=/lib/modules/${_kernver}/build module || return 1
mkdir -p $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/
install -m644 nvidia.ko $pkgdir/lib/modules/${_kernver}/kernel/drivers/video/
sh "NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run" --extract-only
cd "NVIDIA-Linux-$ARCH-${pkgver}-pkg0/usr/src/nv/"
ln -s Makefile.kbuild Makefile
make SYSSRC=/lib/modules/${_kver}/build module || return 1
}
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install
package() {
cd "NVIDIA-Linux-$ARCH-${pkgver}-pkg0/usr/src/nv/"
mkdir -p $pkgdir//lib/modules/${_extramodules}
install -m644 nvidia.ko $pkgdir/lib/modules/${_extramodules}
install -d -m755 "${pkgdir}/etc/modprobe.d"
echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist.conf"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install"
gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
}
post_install() {
KERNEL_VERSION='3.1-CHAKRA'
depmod $KERNEL_VERSION
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo 'In order to use nvidia module, reboot the system.'
}
post_upgrade() {
post_install
rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_remove() {
KERNEL_VERSION='3.1-CHAKRA'
depmod $KERNEL_VERSION
}
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
\ No newline at end of file
......@@ -5,15 +5,16 @@
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# Find the kernel name inside the chroot
_kernver=$(pacman -Q linux | cut -c7-9 | sed 's/linux //g')-CHAKRA
_extramodules=extramodules-`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
_kver="$(cat /lib/modules/${_extramodules}/version)"
pkgname=nvidia
pkgver=295.09
pkgrel=2
pkgrel=4
pkgdesc="NVIDIA drivers for linux."
arch=('i686' 'x86_64')
url="http://www.nvidia.com/"
depends=('linux>=3.1' 'linux<3.2' "nvidia-utils=${pkgver}")
depends=('linux>=3.2' 'linux<3.3' "nvidia-utils=${pkgver}")
makedepends=('linux-headers')
conflicts=('nvidia-96xx' 'nvidia-173xx')
license=('custom')
......@@ -32,17 +33,21 @@ elif [ "$CARCH" = "x86_64" ]; then
fi
build() {
echo "==> Building for kernel version ${_kernver}"
cd $srcdir
sh ${_pkg}.run --extract-only
cd ${_pkg}/kernel
make SYSSRC=/lib/modules/${_kernver}/build module
cd "${srcdir}"
sh "${_pkg}.run" --extract-only
cd "${_pkg}/kernel"
make SYSSRC=/lib/modules/"${_kver}/build" module
}
package() {
install -D -m644 $srcdir/${_pkg}/kernel/nvidia.ko \
$pkgdir/lib/modules/${_kernver}/kernel/drivers/video/nvidia.ko
install -d -m755 $pkgdir/etc/modprobe.d
echo "blacklist nouveau" >> $pkgdir/etc/modprobe.d/nouveau_blacklist.conf
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/nvidia.install
install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
"${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
install -d -m755 "${pkgdir}/etc/modprobe.d"
echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist.conf"
# create /etc/nvidia-drv.conf for chakra-hardware-detection and tribe
echo "NVIDIA_DRV_VER=\"${pkgver}\"" > $pkgdir/etc/nvidia-drv.conf
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install"
gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
}
post_install() {
KERNEL_VERSION='3.1-CHAKRA'
depmod $KERNEL_VERSION
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo 'In order to use nvidia module, reboot the system.'
}
post_upgrade() {
post_install
rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_remove() {
KERNEL_VERSION='3.1-CHAKRA'
depmod $KERNEL_VERSION
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
......@@ -4,18 +4,16 @@
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
# Find the kernel name inside the chroot
_kernver=`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
_extramodules=extramodules-`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHAKRA
_kver="$(cat /lib/modules/${_extramodules}/version)"
pkgname=rtl8192
pkgver=0005.1230.2011
pkgrel=1
pkgrel=3
pkgdesc="Driver for Realtek 8192CE/DE/SE PCI wireless chipsets."
license=("GPL")
depends=('linux-headers')
depends=('linux>=3.2' 'linux<3.3' 'linux-headers')
replaces=(rtl8192se)
source=("http://chakra.sourceforge.net/sources/$pkgname/92ce_se_de_linux_mac80211_${pkgver}.tar.gz")
arch=('i686' 'x86_64')
......@@ -23,21 +21,22 @@ url="http://www.realtek.com.tw/"
install="${pkgname}.install"
build() {
cd ${srcdir}/rtl_92ce_92se_92de_linux_mac80211_0005.1230.2011
patch < ../../wifi.h.patch
cd ${srcdir}/rtl_92ce_92se_92de_linux_mac80211_${pkgver}
make
make KVER=$_kver
}
mkdir -p ${pkgdir}/lib/firmware
cp -rf firmware/rtlwifi ${pkgdir}/lib/firmware/rtlwifi
mkdir -p ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/rtlwifi/rtl8192{c,d,s}e
cp -f rtl8192ce/rtl8192ce.ko ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/rtlwifi/rtl8192ce
cp -f rtl8192de/rtl8192de.ko ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/rtlwifi/rtl8192de
cp -f rtl8192se/rtl8192se.ko ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/rtlwifi/rtl8192se
cp -f rtlwifi.ko ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/rtlwifi
find ${pkgdir}/lib/modules/$_kernver/kernel/drivers/net/wireless/rtlwifi -name '*.ko' -exec gzip {} \;
package() {
cd ${srcdir}/rtl_92ce_92se_92de_linux_mac80211_${pkgver}
mkdir -p ${pkgdir}/lib/firmware
cp -rf firmware/rtlwifi ${pkgdir}/lib/firmware/rtlwifi-realtek
mkdir -p ${pkgdir}/lib/modules/${_extramodules}
cp -f rtl8192ce/rtl8192ce.ko ${pkgdir}/lib/modules/${_extramodules}
cp -f rtl8192de/rtl8192de.ko ${pkgdir}/lib/modules/${_extramodules}
cp -f rtl8192se/rtl8192se.ko ${pkgdir}/lib/modules/${_extramodules}
cp -f rtlwifi.ko ${pkgdir}/lib/modules/${_extramodules}
find ${pkgdir}/lib/modules/${_extramodules} -name '*.ko' -exec gzip {} \;
}
md5sums=('f7d166274151276a7f7035813a5d5336')
\ No newline at end of file
refresh_depmod()
{
echo "updating kernel modules..."
depmod -a
EXTRAMODULES='extramodules-3.2-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
# arg 1: the new package version
post_install()
{
mv /lib/firmware/rtlwifi /lib/firmware/rtlwifi-linux
mv /lib/firmware/rtlwifi-realtek /lib/firmware/rtlwifi
refresh_depmod
}
......@@ -14,12 +17,16 @@ post_install()
# arg 2: the old package version
post_upgrade()
{
rm /lib/firmware/rtlwifi/*
mv /lib/firmware/rtlwifi-realtek /lib/firmware/rtlwifi
refresh_depmod
}
# arg 1: the old package version
post_remove()
{
rm /lib/firmware/rtlwifi/*
mv /lib/firmware/rtlwifi-linux /lib/firmware/rtlwifi
refresh_depmod
}
......
--- src/rtl_92ce_92se_92de_linux_mac80211_0004.0816.2011/wifi.h 2011-08-17 07:53:05.000000000 +0200
+++ wifi.h 2011-11-16 14:23:04.000000000 +0100
@@ -34,6 +34,7 @@
#include <linux/firmware.h>
#include <linux/version.h>
#include <linux/etherdevice.h>
+#include <linux/interrupt.h>
#include <net/mac80211.h>
#include "debug.h"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment