Commit 5165a5a1 authored by AlmAck's avatar AlmAck

LTS Kernel 3.14

renamed to -CHAKRA-LTS (fix FS#80)
imported kernel configuration from Arch
introduced new oder list, that cover all the kernel modules involved (core, platform)
parent f7eb2854
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# Find the kernel name inside the chroot
_extramodules=extramodules-3.2-lts
_kver="$(cat /usr/lib/modules/${_extramodules}/version)"
_kernelver=3.2.63
_extramodules=extramodules-3.14-CHAKRA-LTS
_kver="$(cat /lib/modules/${_extramodules}/version)"
_kernelver=3.14.43
pkgname=acpi_call-lts
_pkgname=acpi_call
pkgver=1.0.0
pkgrel=8
pkgver=1.1.0
pkgrel=1
pkgdesc="A kernel module that enables you to call parameterless ACPI methods by writing the method name to /proc/acpi/call, e.g. to turn off discrete graphics card in a dual graphics environment (like NVIDIA Optimus)."
arch=('x86_64')
url=("http://github.com/mkottman/acpi_call")
license=('GPL')
depends=("linux-lts>=${_kernelver}" "linux-lts-headers=${_kernelver}")
makedepends=('git')
provides=('acpi-call-lts')
replaces=('acpi-call-lts')
conflicts=('acpi-call-lts')
install=acpi_call.install
source=("https://github.com/mkottman/acpi_call/archive/v${pkgver}.tar.gz")
md5sums=('3c71239792ddd725d13f7c8d168b4ecf')
depends=("linux-lts>=${_kernelver}")
makedepends=("linux-lts-headers=${_kernelver}")
provides=("${pkgname%-*}")
install="${pkgname%-*}.install"
source=("acpi_call-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0')
build() {
cd ${srcdir}/$_pkgname-${pkgver}
sed \
-e 's/$(shell uname -r)/3.2.63-1-lts/g' \
-i Makefile
cd ${pkgname%-*}-${pkgver}
make
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
make KVERSION="${_kernver}"
}
package() {
cd ${srcdir}/$_pkgname-${pkgver}
install -d ${pkgdir}/usr/share/$_pkgname
install -d ${pkgdir}/usr/bin
install -Dm755 ${srcdir}/$_pkgname-${pkgver}/examples/asus1215n.sh \
${pkgdir}/usr/share/$_pkgname
install -Dm755 ${srcdir}/$_pkgname-${pkgver}/examples/m11xr2.sh \
${pkgdir}/usr/share/$_pkgname
install -Dm755 ${srcdir}/$_pkgname-${pkgver}/examples/dellL702X.sh \
${pkgdir}/usr/share/$_pkgname
install -Dm755 ${srcdir}/$_pkgname-${pkgver}/examples/turn_off_gpu.sh \
${pkgdir}/usr/share/$_pkgname
ln -s /usr/share/$_pkgname/turn_off_gpu.sh \
${pkgdir}/usr/bin/turn_off_gpu.sh
install -Dm755 ${srcdir}/$_pkgname-${pkgver}/support/query_dsdt.pl \
${pkgdir}/usr/share/$_pkgname-${pkgver}
cp -R support/windump_hack \
${pkgdir}/usr/share/$_pkgname/
install -Dm644 README.md \
${pkgdir}/usr/share/$_pkgname/README.md
msg2 "Building module for $_kver..."
# KDIR is necessary even when cleaning
#make KDIR=/usr/src/linux-${_kver} clean
make KDIR=/usr/src/linux-${_kver}
install -D -m644 acpi_call.ko $pkgdir/usr/lib/modules/${_kver}/kernel/drivers/acpi/acpi_call.ko
cd ${pkgname%-*}-${pkgver}
install -dm 755 "${pkgdir}"/usr/lib/{modules/${_extramodules},modules-load.d}
install -m 644 ${pkgname%-*}.ko "${pkgdir}"/usr/lib/modules/${_extramodules}/
gzip "${pkgdir}"/usr/lib/modules/${_extramodules}/${pkgname%-*}.ko
echo ${pkgname%-*} > "${pkgdir}"/usr/lib/modules-load.d/${pkgname}.conf
install -dm 755 "${pkgdir}"/usr/share/${pkgname}
cp -dr --no-preserve='ownership' {examples,support} "${pkgdir}"/usr/share/${pkgname}/
}
#
# Chakra Packages for Chakra, part of chakra-project.org
# Chakra Packages for Chakra, part of chakraos.org
#
_extramodules=extramodules-3.2-lts
_kernver="$(cat /lib/modules/${_extramodules}/version)"
_kernelver=3.2.63
_extramodules=extramodules-3.14-CHAKRA-LTS
_kver="$(cat /lib/modules/${_extramodules}/version)"
_kernelver=3.14.43
pkgname=broadcom-wl-lts
pkgver=6.30.223.248
pkgrel=2
pkgrel=3
pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
arch=('x86_64')
url='http://www.broadcom.com/support/802.11/linux_sta.php'
......@@ -17,20 +17,29 @@ depends=("linux-lts=${_kernelver}")
makedepends=("linux-lts-headers=${_kernelver}")
backup=('etc/modprobe.d/broadcom-wl-lts.conf')
install=install
source=("http://www.broadcom.com/docs/linux_sta/hybrid-v35_64-nodebug-pcoem-${pkgver//./_}.tar.gz"
#"http://ftp.de.debian.org/debian/pool/non-free/b/broadcom-sta/broadcom-sta_5.100.82.112.orig.tar.gz" "http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_${ARCH}-v${pkgver//./_}.tar.gz" we need the debian version, because upstream URL doesn't exist anymore
'modprobe.d'
'license.patch')
'license.patch'
'gcc.patch')
sha1sums=('bd55f1fdc6b0a4d0a70dc4ba4bb4169a824e238c'
'89bf92286ede30dd85304c6c4e42e89cfdc0f60a'
'ea7b67982ddc0f56fd3becb9914fd4458fe7d373')
'ea7b67982ddc0f56fd3becb9914fd4458fe7d373'
'8a940675e8c0baa65494c378e6155543b26a9a58')
prepare() {
cd "${srcdir}"
patch -p1 -i license.patch
patch -p1 -i gcc.patch
sed -e "/BRCM_WLAN_IFNAME/s:eth:wlan:" \
-i src/wl/sys/wl_linux.c
}
build() {
cd "${srcdir}"
patch -p1 -i ${srcdir}/license.patch
make -C /lib/modules/"${_kernver}"/build M=`pwd`
make -C /lib/modules/"${_kver}"/build M=`pwd`
}
package() {
......
--- a/Makefile 2014-06-26 10:42:08.000000000 +0000
+++ b/Makefile 2014-07-17 22:44:01.662297228 +0000
@@ -126,6 +126,8 @@
EXTRA_CFLAGS += -I$(src)/src/shared/bcmwifi/include
#EXTRA_CFLAGS += -DBCMDBG_ASSERT -DBCMDBG_ERR
+EXTRA_CFLAGS += -Wno-date-time
+
EXTRA_LDFLAGS := $(src)/lib/wlc_hybrid.o_shipped
KBASE ?= /lib/modules/`uname -r`
#core_packages
linux-lts
vhba-module-lts
broadcom-wl-lts
acpi_call-lts
ndiswrapper-lts
#platform_packages
../platform/bbswitch-lts
../platform/nvidia-lts
../platform/nvidia-304xx-lts
../platform/nvidia-340xx-lts
../platform/catalyst-lts
#
# Core Packages for Chakra, part of chakra-project.org
# Core Packages for Chakra, part of chakraos.org
#
# ToDo remove the " from "linux-lts" and add on all lts pkgs "extramodules-3.2-CHAKRA-LTS" instead of extramodules-3.2-lts
pkgbase="linux-lts"
pkgname=('linux-lts' 'linux-lts-headers' 'linux-lts-docs') # Build stock -CHAKRA-LTS kernel
# pkgname=linux-custom # Build kernel with a different name
_kernelname=${pkgname#linux}
_basekernel=3.2
pkgver=3.2.63
pkgname=('linux-lts' 'linux-lts-headers' 'linux-lts-docs')
_kernelname="-CHAKRA-LTS"
_basekernel=3.14
pkgver=3.14.43
pkgrel=1
makedepends=('xmlto' 'docbook-xsl')
makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc')
arch=('x86_64')
license=('GPL2')
url="http://www.kernel.org"
options=(!strip)
source=("ftp://ftp.kernel.org/pub/linux/kernel/v3.x/linux-$_basekernel.tar.bz2"
"http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz"
source=("https://www.kernel.org/pub/linux/kernel/v3.x/linux-$_basekernel.tar.xz"
"https://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz"
# the main kernel config files
'config.x86_64'
# standard config files for mkinitcpio ramdisk
'linux-lts.preset'
'change-default-console-loglevel.patch')
md5sums=('7ceb61f87c097fc17509844b71268935'
'b0415bfb76e94590e3d0ab68884af8c9'
'd73da01f9e20687abda70c10e7e5ea71'
md5sums=('b621207b3f6ecbb67db18b13258f8ea8'
'd32d6ea8aafb86fc163d5601b06f11e3'
'9847f68028ea7bc5e249cda4d6d8f1d9'
'232b52576a62c7a333e9fe7a1e1ca359'
'9d3c56a4b999c8bfbd4018089a62f662')
'98beb36f9b8cf16e58de2483ea9985e3')
build() {
prepare() {
cd ${srcdir}/linux-$_basekernel
# add upstream patch
......@@ -46,10 +45,14 @@ build() {
if [ "${_kernelname}" != "" ]; then
sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" ./.config
fi
# set extraversion to pkgrel
sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
# don't run depmod on 'make install'. We'll do this ourselves in packaging
sed -i '2iexit 0' scripts/depmod.sh
# get kernel version
make prepare
......@@ -70,23 +73,26 @@ build() {
####################
yes "" | make config
}
# build!
make ${MAKEFLAGS} bzImage modules
build() {
cd ${srcdir}/linux-$_basekernel
make ${MAKEFLAGS} LOCALVERSION= bzImage modules
}
package_linux-lts() {
pkgdesc="The Linux LTS-Kernel and modules"
groups=('lts')
depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7.5')
depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio')
optdepends=('crda: to set the correct wireless channels of your country')
replaces=('kernel26-lts' 'linux-scsi'
replaces=('linux-scsi'
'squashfs' 'unionfs' 'ivtv'
'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
'gspcav1' 'atl2' 'wlan-ng26' 'rt2500'
'aufs3' 'nouveau-drm')
provides=("aufs3=$_aufs" 'nouveau-drm-lts' 'kernel26-lts' 'acerhk-lts=0.5.35')
conflicts=('kernel26-lts' 'acerhk-lts')
provides=("aufs3=$_aufs" 'nouveau-drm-lts' 'acerhk-lts=0.5.35')
conflicts=('acerhk-lts')
backup=("etc/mkinitcpio.d/${pkgname}.preset")
install=${pkgname}.install
......@@ -95,7 +101,7 @@ package_linux-lts() {
KARCH=x86
# get kernel version
_kernver="$(make kernelrelease)"
_kernver="$(make LOCALVERSION= kernelrelease)"
mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
make INSTALL_MOD_PATH="${pkgdir}" modules_install
......@@ -140,9 +146,6 @@ package_linux-lts() {
package_linux-lts-headers() {
pkgdesc="Header files and scripts for building modules for linux lts-kernel"
provides=('kernel26-lts-headers')
conflicts=('kernel26-lts-headers')
replaces=('kernel26-lts-headers')
install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"
......@@ -160,7 +163,7 @@ package_linux-lts-headers() {
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include"
for i in acpi asm-generic config crypto drm generated linux math-emu \
media mtd net pcmcia scsi sound trace video xen; do
media net pcmcia scsi sound trace uapi video xen; do
cp -a include/${i} "${pkgdir}/usr/src/linux-${_kernver}/include/"
done
......@@ -182,16 +185,6 @@ package_linux-lts-headers() {
cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel/"
# add headers for lirc package
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video"
cp drivers/media/video/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/"
for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102; do
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"
cp -a drivers/media/video/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/${i}"
done
# add docbook makefile
install -D -m644 Documentation/DocBook/Makefile \
"${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
......@@ -209,24 +202,31 @@ package_linux-lts-headers() {
cp net/mac80211/*.h "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
# add dvb headers for external modules
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core"
cp drivers/media/dvb/dvb-core/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/"
mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/dvb-core"
cp drivers/media/dvb-core/*.h \
"${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/dvb-core/"
# and...
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
cp include/config/dvb/*.h "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
# add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
cp drivers/media/dvb/frontends/lgdt330x.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
cp drivers/media/video/msp3400-driver.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/dvb-frontends/"
cp drivers/media/dvb-frontends/lgdt330x.h \
"${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/dvb-frontends/"
mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/i2c/"
cp drivers/media/i2c/msp3400-driver.h \
"${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/i2c/"
# add dvb headers
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb"
cp drivers/media/dvb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-usb/"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends"
cp drivers/media/dvb/frontends/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners"
cp drivers/media/common/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/common/tuners/"
mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/usb/dvb-usb"
cp drivers/media/usb/dvb-usb/*.h \
"${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/usb/dvb-usb/"
mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/dvb-frontends"
cp drivers/media/dvb-frontends/*.h \
"${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/dvb-frontends/"
mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/tuners"
cp drivers/media/tuners/*.h \
"${pkgdir}/usr/lib/modules/${_kernver}/build/drivers/media/tuners/"
# add xfs and shmem for aufs building
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs"
......@@ -255,14 +255,11 @@ package_linux-lts-headers() {
done
# remove unneeded architectures
rm -rf "${pkgdir}"/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
rm -rf "${pkgdir}"/usr/lib/modules/${_kernver}/build/arch/{alpha,arc,arm,arm26,arm64,avr32,blackfin,c6x,cris,frv,h8300,hexagon,ia64,m32r,m68k,m68knommu,metag,mips,microblaze,mn10300,openrisc,parisc,powerpc,ppc,s390,score,sh,sh64,sparc,sparc64,tile,unicore32,um,v850,xtensa}
}
package_linux-lts-docs() {
pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux lts-kernel."
provides=('kernel26-lts-docs')
conflicts=('kernel26-lts-docs')
replaces=('kernel26-lts-docs')
cd "${srcdir}/linux-${_basekernel}"
......
diff -upr linux-3.0.orig/kernel/printk.c linux-3.0/kernel/printk.c
--- linux-3.0.orig/kernel/printk.c 2011-07-22 05:17:23.000000000 +0300
+++ linux-3.0/kernel/printk.c 2011-07-27 14:43:07.000000000 +0300
--- linux-3.0.orig/kernel/printk/printk.c 2011-07-22 05:17:23.000000000 +0300
+++ linux-3.0/kernel/printk/printk.c 2011-07-27 14:43:07.000000000 +0300
@@ -58,7 +58,7 @@ void asmlinkage __attribute__((weak)) ea
/* We show everything that is MORE important than this.. */
#define MINIMUM_CONSOLE_LOGLEVEL 1 /* Minimum loglevel we let people use */
-#define DEFAULT_CONSOLE_LOGLEVEL 7 /* anything MORE serious than KERN_DEBUG */
+#define DEFAULT_CONSOLE_LOGLEVEL 4 /* anything MORE serious than KERN_DEBUG */
+#define DEFAULT_CONSOLE_LOGLEVEL 4 /* anything MORE serious than KERN_WARNING */
DECLARE_WAIT_QUEUE_HEAD(log_wait);
This diff is collapsed.
# arg 1: the new package version
# arg 2: the old package version
KERNEL_NAME=-lts
KERNEL_VERSION=3.2.63-1-lts
KERNEL_NAME=-CHAKRA-LTS
KERNEL_VERSION=3.14.43-1-CHAKRA-LTS
post_install () {
# updating module dependencies
......@@ -10,38 +10,19 @@ post_install () {
depmod ${KERNEL_VERSION}
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
mkinitcpio -p linux${KERNEL_NAME}
# add compat symlinks for the initramfs images
ln -sf initramfs-linux${KERNEL_NAME}.img boot/kernel26${KERNEL_NAME}.img
ln -sf initramfs-linux${KERNEL_NAME}-fallback.img \
boot/kernel26${KERNEL_NAME}-fallback.img
ln -sf vmlinuz-linux${KERNEL_NAME} /boot/vmlinuz26${KERNEL_NAME}
}
post_upgrade() {
pacman -Q grub &>/dev/null
hasgrub=$?
pacman -Q grub2-common &>/dev/null
hasgrub2=$?
pacman -Q lilo &>/dev/null
haslilo=$?
# reminder notices
if [ $haslilo -eq 0 ]; then
echo ">>>"
if [ $hasgrub -eq 0 -o $hasgrub2 -eq 0 ]; then
echo ">>> If you use the LILO bootloader, you should run 'lilo' before rebooting."
else
echo ">>> You appear to be using the LILO bootloader. You should run"
echo ">>> 'lilo' before rebooting."
fi
echo ">>>"
fi
if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then
echo "WARNING: /boot appears to be a separate partition but is not mounted."
fi
if [ $(vercmp $2 3.13) -lt 0 ]; then
echo ">>> WARNING: AT keyboard support is no longer built into the kernel."
echo ">>> In order to use your keyboard during early init, you MUST"
echo ">>> include the 'keyboard' hook in your mkinitcpio.conf."
fi
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod ${KERNEL_VERSION}
......@@ -51,8 +32,8 @@ post_upgrade() {
post_remove() {
# also remove the compat symlinks
rm -f boot/{initramfs-linux,kernel26}${KERNEL_NAME}.img
rm -f boot/{initramfs-linux,kernel26}${KERNEL_NAME}-fallback.img
rm -f boot/initramfs-linux${KERNEL_NAME}.img
rm -f boot/initramfs-linux${KERNEL_NAME}-fallback.img
}
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# contributor: abveritas@chakra-project.org
# Find the kernel name inside the chroot
_extramodules=extramodules-3.2-lts
_extramodules=extramodules-3.14-CHAKRA-LTS
_kver="$(cat /lib/modules/${_extramodules}/version)"
_kernelver=3.2.63
_kernelver=3.14.43
_rootOfSourceTree=/usr/src/linux-${_kver}
pkgname=ndiswrapper-lts
_pkgname=ndiswrapper
pkgver=1.59
pkgrel=4
pkgrel=5
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For linux-testing."
license=('GPL')
arch=('x86_64')
......@@ -17,25 +17,32 @@ url="http://ndiswrapper.sourceforge.net"
install="ndiswrapper.install"
depends=("linux-lts=${_kernelver}")
makedepends=("linux-lts-headers=${_kernelver}")
source=("http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz")
md5sums=('e26a7213468ccd6b0bb4c211c7aadeaa')
source=("http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz"
"ndiswrapper-1.59.patch")
sha1sums=('75fbbda677fe91ee07a6f6a8e19b1f3e2479540f'
'f120e96fa9abab45e1c724aaac29da7b892820f0')
build() {
cd "$srcdir/$_pkgname-$pkgver"
prepare() {
[ -z "$_kver" ] && error "Could not get kernel version from '/usr/lib/modules/${_extramodules}/version'..." && false
msg "Found kernel version: $_kver"
cd "$srcdir/$_pkgname-$pkgver"
patch -p1 -i ../ndiswrapper-1.59.patch
sed -i "/modinfo/s/s/usr\//" driver/Makefile
make KBUILD=/usr/src/linux-$_kver KVERS=$_kver
}
build() {
cd "$srcdir/$_pkgname-$pkgver"
make -C driver KVERS_UNAME=${_kver}
make -C utils
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
make KBUILD=/usr/src/linux-$_kver INST_DIR="usr/lib/modules/$_extramodules" \
KVERS=$_kver DESTDIR="$pkgdir/" install
# rm ndiswrapper
rm -r "$pkgdir/usr/share" "$pkgdir/usr/sbin" "$pkgdir/sbin"
make sbindir=/usr/sbin usrsbindir=/usr/sbin KBUILD=${_rootOfSourceTree} INST_DIR="usr/lib/modules/$_extramodules" \
KVERS=$_kver DESTDIR="$pkgdir/" install
gzip "$pkgdir/usr/lib/modules/$_extramodules/$_pkgname.ko"
}
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" \
"${startdir}/ndiswrapper.install"
}
\ No newline at end of file
diff -aur ndiswrapper-1.59.old/driver/crt.c ndiswrapper-1.59.new/driver/crt.c
--- ndiswrapper-1.59.old/driver/crt.c 2013-11-28 20:42:35.000000000 +0100
+++ ndiswrapper-1.59.new/driver/crt.c 2014-04-11 20:39:22.384962602 +0200
@@ -467,7 +467,7 @@
noregparm void WIN_FUNC(_win_srand,1)
(UINT seed)
{
- net_srandom(seed);
+ prandom_seed((__force u32)(seed));
}
noregparm int WIN_FUNC(rand,0)
diff -aur ndiswrapper-1.59.old/driver/ntoskernel.h ndiswrapper-1.59.new/driver/ntoskernel.h
--- ndiswrapper-1.59.old/driver/ntoskernel.h 2013-11-28 20:42:36.000000000 +0100
+++ ndiswrapper-1.59.new/driver/ntoskernel.h 2014-04-11 20:44:03.491617236 +0200
@@ -347,7 +347,7 @@
#define netdev_notifier_info_to_dev(x) ((struct net_device *)(x))
#endif
-#ifdef INIT_COMPLETION
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,13,0)
static inline void reinit_completion(struct completion *x)
{
INIT_COMPLETION(*x);
@@ -797,9 +797,8 @@
#define nt_spin_unlock_irqrestore(lock, flags) \
do { \
nt_spin_unlock(lock); \
- preempt_enable_no_resched(); \
+ preempt_enable(); \
local_irq_restore(flags); \
- preempt_check_resched(); \
} while (0)
static inline ULONG SPAN_PAGES(void *ptr, SIZE_T length)
......@@ -5,7 +5,7 @@ post_install()
post_upgrade()
{
EXTRAMODULES='extramodules-3.2-lts'
EXTRAMODULES='extramodules-3.14-CHAKRA-LTS'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
......
#
# Chakra Packages for Chakra, part of chakra-project.org
# Chakra Packages for Chakra, part of chakraos.org
#
_extramodules=extramodules-3.2-lts
_extramodules=extramodules-3.14-CHAKRA-LTS
_kver="$(cat /lib/modules/${_extramodules}/version)"
_kernelver=3.2.63
_kernelver=3.14.43
pkgname=vhba-module-lts
_pkgname=vhba-module
pkgver=20140629
pkgrel=2
pkgver=20140928
pkgrel=1
pkgdesc="Kernel module that emulates SCSI devices"
arch=('x86_64')
url="http://cdemu.sourceforge.net/"
......@@ -19,7 +19,7 @@ makedepends=("linux-lts-headers=${_kernelver}")
install=vhba-module.install
source=("http://sourceforge.net/projects/cdemu/files/vhba-module/vhba-module-$pkgver.tar.bz2"
'60-vhba.rules')
md5sums=('6b307a80df9c163768cc7ecb3ccebb71'
md5sums=('967007230bb028424216d9b35da422c0'
'4dc37dc348b5a2c83585829bde790dcc')
prepare() {
......
post_install() {
echo ">> Place 'vhba' in MODULES= in /etc/rc.conf to enable vhba on system boot."
echo ">> This module needs to be recompiled for every kernel version upgrade."
EXTRAMODULES='extramodules-3.2-lts'
EXTRAMODULES='extramodules-3.14-CHAKRA-LTS'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
......@@ -10,7 +10,7 @@ post_upgrade() {
}
post_remove() {
EXTRAMODULES='extramodules-3.2-lts'
EXTRAMODULES='extramodules-3.14-CHAKRA-LTS'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
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