Commit cc0ee4d1 authored by Luca Giambonini's avatar Luca Giambonini

Merge branch 'kernel_4.17' into 'testing'

Kernel 4.18 and lts 4.4.150

See merge request packages/core!5
parents 168aecd4 334c0bdf
Pipeline #1093 failed with stages
in 21 seconds
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# Source global configuration
source ../linux-lts.conf
pkgname=acpi_call-lts
_pkgname=acpi_call
pkgver=1.1.0
pkgrel=8
pkgrel=11
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}")
makedepends=("linux-lts-headers=${_kernelver}")
depends=("linux-lts=4.4.150")
makedepends=("linux-lts-headers=4.4.150")
provides=("${pkgname%-*}")
install="${pkgname%-*}.install"
source=("acpi_call-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('d0d14b42944282724fca76f57d598eed794ef97448f387d1c489d85ad813f2f0')
_extramodules=extramodules-CHAKRA-LTS
source=("https://github.com/mkottman/acpi_call/archive/v${pkgver}.tar.gz")
md5sums=('f69d40e130b0e5ed17ce8adb19e6dda1')
prepare() {
cd ${pkgname%-*}-${pkgver}
# Fix build with Linux >= 3.17
sed -i 's|acpi/acpi.h|linux/acpi.h|' acpi_call.c
}
build() {
cd ${pkgname%-*}-${pkgver}
make KVERSION="${_kver}"
make KVERSION="$(cat /usr/lib/modules/$_extramodules/version)"
}
package() {
cd ${pkgname%-*}-${pkgver}
install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 *.ko
find "$pkgdir" -name '*.ko' -exec xz {} +
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
echo acpi_call | install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/acpi_call.conf"
install -dm 755 "${pkgdir}"/usr/share/${pkgname}
cp -dr --no-preserve='ownership' {examples,support} "${pkgdir}"/usr/share/${pkgname}/
mkdir -p "$pkgdir/usr/share/acpi_call"
cp -t "$pkgdir/usr/share/acpi_call" -dr --no-preserve=ownership examples support
}
post_install() {
depmod -a
echo ""
echo "[+] modprobe acpi_call"
echo ">>> run /usr/bin/turn_off_gpu.sh to test/view different acpi_call functions to see if it disables your secondary/hybrid video card"
......@@ -7,7 +6,6 @@ post_install() {
}
post_upgrade() {
depmod -a
echo ""
echo "[+] modprobe acpi_call"
echo ">>> run /usr/bin/turn_off_gpu.sh to test/view different acpi_call functions to see if it disables your secondary/hybrid video card"
......@@ -15,7 +13,6 @@ post_upgrade() {
}
post_remove() {
depmod -a
}
op=$1
......
# Source global configuration
source ../linux.conf
pkgname=acpi_call
pkgver=1.1.0
pkgrel=46
pkgrel=49
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=${_kernelver}")
makedepends=("linux-headers=${_kernelver}")
install=acpi_call.install
depends=("linux=4.18.3")
makedepends=("linux-headers=4.18.3")
_extramodules=extramodules-CHAKRA
source=("https://github.com/mkottman/acpi_call/archive/v${pkgver}.tar.gz")
md5sums=('f69d40e130b0e5ed17ce8adb19e6dda1')
prepare() {
cd ${pkgname}-${pkgver}
cd $pkgbase-$pkgver
# Fix build with Linux >= 3.17
sed -i 's|acpi/acpi.h|linux/acpi.h|' acpi_call.c
......@@ -25,26 +23,17 @@ prepare() {
}
build() {
cd ${pkgname}-${pkgver}
make KVERSION=${_kver}
cd $pkgbase-$pkgver
make KVERSION="$(cat /usr/lib/modules/$_extramodules/version)"
}
package() {
cd ${pkgname}-${pkgver}
install -dm 755 "${pkgdir}"/usr/lib/{modules/${_extramodules},modules-load.d} "${pkgdir}"/usr/bin
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}/
package() {
cd $pkgbase-$pkgver
install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 *.ko
find "$pkgdir" -name '*.ko' -exec xz {} +
ln -s /usr/share/$pkgname/examples/turn_off_gpu.sh \
${pkgdir}/usr/bin/turn_off_gpu.sh
echo acpi_call | install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/acpi_call.conf"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" \
"${startdir}/${pkgname}.install"
mkdir -p "$pkgdir/usr/share/acpi_call"
cp -t "$pkgdir/usr/share/acpi_call" -dr --no-preserve=ownership examples support
}
# vim: ts=2 sw=2 et:
post_install() {
EXTRAMODULES='extramodules-4.16-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo ""
echo "[+] modprobe acpi_call"
echo ">>> run /usr/bin/turn_off_gpu.sh to test/view different acpi_call functions to see if it disables your secondary/hybrid video card"
echo ">>> There are a few scripts to use in /usr/share/acpi_call/examples - some for specific laptops => asus1215n.sh, dellL702X.sh, m11xr2.sh"
}
post_upgrade() {
post_install
}
post_remove() {
EXTRAMODULES='extramodules-4.16-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
op=$1
shift
$op $*
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# Source global configuration
source ../linux-lts.conf
pkgname=bbswitch-lts
_pkgname=bbswitch
pkgver=0.8
pkgrel=11
pkgrel=14
pkgdesc="kernel module allowing to switch dedicated graphics card on Optimus laptops"
arch=('x86_64')
url='http://github.com/Bumblebee-Project/bbswitch'
license=('GPL')
provides=('bbswitch')
install=bbswitch.install
depends=("linux-lts=${_kernelver}")
makedepends=("linux-lts-headers=${_kernelver}")
_extramodules=extramodules-CHAKRA-LTS
depends=("linux-lts=4.4.150")
makedepends=("linux-lts-headers=4.4.150")
source=("https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz")
md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807')
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
make KDIR=/usr/lib/modules/${_kver}/build KVERSION=${_kver}
cd ${_pkgname}-${pkgver}
KERNEL_VERSION=$(</usr/lib/modules/$_extramodules/version)
msg2 "Kernel = $KERNEL_VERSION"
make KDIR="/usr/lib/modules/$KERNEL_VERSION/build/"
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}
msg2 "Building module for $_kver..."
# KDIR is necessary even when cleaning
#make KDIR=/usr/src/linux-${_kver} clean
mkdir -p $pkgdir/usr/lib/modules/${_extramodules}
install -D -m644 bbswitch.ko $pkgdir/usr/lib/modules/${_extramodules}
gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko"
#automatically update bbswitch.install
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/bbswitch.install"
cd ${_pkgname}-${pkgver}
# KDIR is necessary even when cleaning
install -Dm644 bbswitch.ko $pkgdir/usr/lib/modules/${_extramodules}/bbswitch.ko
gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko"
}
post_install() {
EXTRAMODULES='extramodules-4.4-CHAKRA-LTS'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo 'In order to use nvidia module, reboot the system.'
}
post_upgrade() {
EXTRAMODULES='extramodules-4.4-CHAKRA-LTS'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_remove() {
EXTRAMODULES='extramodules-4.4-CHAKRA-LTS'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
\ No newline at end of file
# Source global configuration
source ../linux.conf
pkgname=bbswitch
pkgver=0.8
pkgrel=40
pkgrel=44
pkgdesc="kernel module allowing to switch dedicated graphics card on Optimus laptops"
arch=('x86_64')
url="http://github.com/Bumblebee-Project/bbswitch"
license=('GPL')
install=bbswitch.install
depends=("linux=${_kernelver}")
makedepends=("linux-headers=${_kernelver}")
depends=("linux=4.18.3")
makedepends=("linux-headers=4.18.3")
_extramodules=extramodules-CHAKRA
source=("https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz")
md5sums=('5b116b31ace3604ddf9d1fc1f4bc5807')
prepare() {
#automatically update bbswitch.install
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/bbswitch.install"
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
make KDIR=${_rootOfSourceTree}
KERNEL_VERSION=$(</usr/lib/modules/$_extramodules/version)
msg2 "Kernel = $KERNEL_VERSION"
make KDIR="/usr/lib/modules/$KERNEL_VERSION/build/"
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
msg2 "Building module for $_kver..."
# KDIR is necessary even when cleaning
#make KDIR=/usr/src/linux-${_kver} clean
install -Dm644 bbswitch.ko $pkgdir/usr/lib/modules/${_extramodules}/bbswitch.ko
gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko"
}
post_install() {
EXTRAMODULES='extramodules-4.16-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo 'In order to use nvidia module, reboot the system.'
}
post_upgrade() {
EXTRAMODULES='extramodules-4.16-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_remove() {
EXTRAMODULES='extramodules-4.16-CHAKRA'
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
# Source global configuration
source ../linux-lts.conf
pkgname=broadcom-wl-lts
pkgver=6.30.223.271
pkgrel=7
pkgrel=9
pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
arch=('x86_64')
url='http://www.broadcom.com/support/802.11/linux_sta.php'
license=('custom')
depends=("linux-lts=${_kernelver}")
makedepends=("linux-lts-headers=${_kernelver}")
depends=("linux-lts=4.4.150")
makedepends=("linux-lts-headers=4.4.150")
backup=('etc/modprobe.d/broadcom-wl-lts.conf')
install=install
_extramodules=extramodules-CHAKRA-LTS
source=("https://docs.broadcom.com/docs-and-downloads/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'
......@@ -33,21 +30,25 @@ prepare() {
patch -p1 -i 002-rdtscl.patch
patch -p1 -i 005-debian-fix-kernel-warnings.patch
sed -e "/BRCM_WLAN_IFNAME/s:eth:wlan:" \
-i src/wl/sys/wl_linux.c
}
build() {
cd "${srcdir}"
make -C $_rootOfSourceTree M=`pwd`
cd "${srcdir}"
KERNEL_VERSION=$(</usr/lib/modules/$_extramodules/version)
msg2 "Kernel = $KERNEL_VERSION"
make -C /usr/lib/modules/"${KERNEL_VERSION}"/build M=`pwd`
}
package() {
cd "${srcdir}"
cd "${srcdir}"
install -D -m 755 wl.ko "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko"
gzip "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko"
install -Dm644 wl.ko "${pkgdir}/usr/lib/modules/$_extramodules/wl.ko"
gzip "${pkgdir}/usr/lib/modules/$_extramodules/wl.ko"
install -D -m 644 lib/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m 644 ${srcdir}/modprobe.d "${pkgdir}"/etc/modprobe.d/broadcom-wl-lts.conf
install -Dm644 lib/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 modprobe.d "${pkgdir}/usr/lib/modprobe.d/broadcom-wl.conf"
}
post_upgrade() {
cd lib/modules
for i in extramodules-*; do depmod "$(cat "$i/version")"; done
cd ../..
}
post_install() {
post_upgrade
}
# Source global configuration
source ../linux.conf
pkgname=broadcom-wl
pkgver=6.30.223.271
pkgrel=22
pkgrel=26
pkgdesc='Broadcom 802.11abgn hybrid Linux networking device driver'
url='http://www.broadcom.com/support/802.11/linux_sta.php'
arch=('x86_64')
license=('custom')
depends=("linux=${_kernelver}")
makedepends=("linux-headers=${_kernelver}")
depends=("linux=4.18.3")
makedepends=("linux-headers=4.18.3")
_extramodules=extramodules-CHAKRA
source=("https://docs.broadcom.com/docs-and-downloads/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'
......@@ -32,8 +31,6 @@ sha1sums=('1f568bb989d175813c5631c6629d9479eae6f3be'
'1d3fb939df5ba3b04e2949df6c5ed24f4a3d1f48'
'0b14384c82fe2a511d4f0210a682871b8906ae6a')
install=install
prepare() {
cd "${srcdir}"
......@@ -52,15 +49,17 @@ prepare() {
build() {
cd "${srcdir}"
make -C /usr/lib/modules/"${_kver}"/build M=`pwd`
KERNEL_VERSION=$(</usr/lib/modules/$_extramodules/version)
msg2 "Kernel = $KERNEL_VERSION"
make -C /usr/lib/modules/"${KERNEL_VERSION}"/build M=`pwd`
}
package() {
cd "${srcdir}"
install -Dm644 wl.ko "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko"
gzip "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko"
install -Dm644 wl.ko "${pkgdir}/usr/lib/modules/$_extramodules/wl.ko"
gzip "${pkgdir}/usr/lib/modules/$_extramodules/wl.ko"
install -Dm644 lib/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 modprobe.d "${pkgdir}/usr/lib/modprobe.d/broadcom-wl.conf"
......
post_upgrade() {
for i in /usr/lib/modules/extramodules-*
do
if [ -f "$i/version" ]
then
depmod $(cat "$i/version")
fi
done
}
post_install() {
post_upgrade
}
......@@ -2,8 +2,8 @@
# kernel.
pkgname=btrfs-progs
pkgver=4.16
pkgrel=4
pkgver=4.17
pkgrel=3
pkgdesc='Btrfs filesystem utilities'
arch=('x86_64')
depends=('glibc' 'util-linux' 'e2fsprogs' 'lzo2' 'zlib' 'zstd')
......@@ -15,7 +15,7 @@ source=("https://github.com/kdave/${pkgname}/archive/v${pkgver}.tar.gz"
'initcpio-hook-btrfs'
'btrfs-scrub@.service'
'btrfs-scrub@.timer')
md5sums=('8b071de61c6a33ba0e1fef78a6eed51c'
md5sums=('60c827c9946bc26697eede8b41742e77'
'7241ba3a4286d08da0d50b7176941112'
'b09688a915a0ec8f40e2f5aacbabc9ad'
'794b867e09451284c545bae112aa0cfd'
......
#!/bin/bash
# kdeupdate.sh
#
# Copyright © 2018 Luca Giambonini <almack@chakralinux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
_script_name="kernel update"
# load functions
for subroutine in $_needed_functions ; do
source ~/bin/functions/$subroutine
done
# Get package information
function _package_info() {
local package="${1}"
local properties=("${@:2}")
for property in "${properties[@]}"; do
local -n nameref_property="${property}"
nameref_property=($(
#source "${package}/PKGBUILD"
source "PKGBUILD"
declare -n nameref_property="${property}"
echo "${nameref_property[@]}"))
done
}
build()
{
while read -r pkg; do
[[ $pkg =~ ^[:blank:]*$ ]] && continue
local comment_re="^[:blank:]*#"
[[ $pkg =~ $comment_re ]] && continue
local pkgrel_re="^[:blank:]*\+"
if [[ $pkg =~ $pkgrel_re ]]; then
echo "Pkgrel ++ '${pkg//+}'"
pushd "${pkg//+}" &>/dev/null
git reset HEAD PKGBUILD
git checkout PKGBUILD
_rel=$(cat PKGBUILD | grep pkgrel= | cut -d= -f2)
sed -i -e "s/pkgrel=$_rel/pkgrel=$(($_rel+1))/" PKGBUILD
sed -e "s/\(depends=([^>]*linux=\)[^\"]*/\1$_kernelver/" -i PKGBUILD
sed -e "s/\(makedepends=([^>]*linux-headers=\)[^\"]*/\1$_kernelver/" -i PKGBUILD
sed -e "s/\(depends=([^>]*linux-lts=\)[^\"]*/\1$_kernelver/" -i PKGBUILD
sed -e "s/\(makedepends=([^>]*linux-lts-headers=\)[^\"]*/\1$_kernelver/" -i PKGBUILD
git add PKGBUILD
popd &>/dev/null
continue
fi
echo "Processing: '$pkg'"
pushd "$pkg" &>/dev/null
# update version
sed -r "s|pkgver=.*|pkgver=$_kernelver|g" -i PKGBUILD
sed -r "s|pkgrel=.*|pkgrel=1|g" -i PKGBUILD
sed -e "s/\(depends=([^>]*linux=\)[^\"]*/\1$_kernelver/" -i PKGBUILD
sed -e "s/\(makedepends=([^>]*linux-headers=\)[^\"]*/\1$_kernelver/" -i PKGBUILD
sed -e "s/\(depends=([^>]*linux-lts=\)[^\"]*/\1$_kernelver/" -i PKGBUILD
sed -e "s/\(makedepends=([^>]*linux-lts-headers=\)[^\"]*/\1$_kernelver/" -i PKGBUILD
# update source link
#sed -r "s|https://download.kde.org/.*stable/|https://download.kde.org/${Branch}/|g" -i PKGBUILD
# update md5 sums
local pkgver pkgname source _pkgname _pkgbase
_package_info "$pkg" pkgver pkgname source _pkgname _pkgbase
if [ ! -z "$_pkgname" ]; then
pkgname=$_pkgname
fi
if [ ! -z "$_pkgbase" ]; then
pkgname=$_pkgbase
fi
#echo $pkgname
#_url="https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/sha256sums.asc"
#echo $_url
#_pkgfqn="${pkgname/5-/}-everywhere-src"
#echo $_pkgfqn
#_md5sums=$(curl "$_url" | grep "${_pkgfqn}" | grep .xz | cut -c-32)
#sed -r "s|md5sums=.*|md5sums=('$_md5sums'|g" -i PKGBUILD
#echo $_md5sums
updpkgsums
git add PKGBUILD
unset pkgver pkgname source _pkgname _pkgbase
popd &>/dev/null
done < "$1"
}
title "$_script_name"
if [ ! -f $1.conf ]; then
echo "$1.conf: File not found!"
exit 1
fi
# load the configurations
source $1.conf
time build "$1.order"
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
source ../linux.conf
pkgname=linux-api-headers
pkgver=$_kernelver
pkgver=4.18.3
pkgrel=1
pkgdesc="Kernel headers sanitized for use in userspace"
arch=('x86_64')
url="http://www.gnu.org/software/libc"
license=('GPL2')
source=(https://www.kernel.org/pub/linux/kernel/v4.x/linux-${pkgver%.*}.tar.{xz,sign}
https://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.{xz,sign})
sha256sums=('63f6dc8e3c9f3a0273d5d6f4dca38a2413ca3a5f689329d05b750e4c87bb21b9'
'SKIP'
'634d3fd97e5d9d90262db0a9d62ed0a40043eb691d68bd4a545f907079610b56'
'SKIP')
source=(https://www.kernel.org/pub/linux/kernel/v4.x/linux-${pkgver}.tar.{xz,sign})
md5sums=('b5aafaf94f7631fd48574e22a74eaa5a'
'SKIP')
validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds
'647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman
prepare() {
cd ${srcdir}/linux-${_basekernel}
[[ $pkgver != $_basekernel ]] && patch -p1 -i ${srcdir}/patch-${pkgver} || true
}
build() {
cd ${srcdir}/linux-${_basekernel}
cd linux-$pkgver
make mrproper
make headers_check
}
package() {
cd ${srcdir}/linux-${_basekernel}
make INSTALL_HDR_PATH=${pkgdir}/usr headers_install
cd linux-$pkgver
make INSTALL_HDR_PATH="$pkgdir/usr" headers_install
# use headers from libdrm
rm -r ${pkgdir}/usr/include/drm
rm -r "$pkgdir/usr/include/drm"
# clean-up unnecessary files generated during install
find ${pkgdir} \( -name .install -o -name ..install.cmd \) -delete
find "$pkgdir" \( -name .install -o -name ..install.cmd \) -delete
}
......@@ -6,11 +6,5 @@
# These are the "basic variables" appliable for the LTS kernal group
_kernelname="-CHAKRA-LTS"
_kernelver=4.4.115
_kernelver=4.4.150
_basekernel=4.4
_extramodules=extramodules-${_basekernel}${_kernelname}
_kver="$(cat /usr/lib/modules/${_extramodules}/version)"
# Fetch from ndiswrapper-lts/PKGBUILD
_rootOfSourceTree=/usr/lib/modules/${_kver}/build/
......@@ -10,15 +10,18 @@
# packages in the right order to solve
# the dependencies correctly
#
# adding '+' in front of the pkgname cause
# a pkgrel++ only (deps version updated too)
#core_packages
#linux-lts
vhba-module-lts
broadcom-wl-lts
acpi_call-lts
ndiswrapper-lts
linux-lts
+vhba-module-lts
+broadcom-wl-lts
+acpi_call-lts
+ndiswrapper-lts
bbswitch-lts
nvidia-lts
nvidia-304xx-lts
nvidia-340xx-lts
+bbswitch-lts
+nvidia-lts
+nvidia-304xx-lts
+nvidia-340xx-lts
+nvidia-390xx-lts
# Source global configuration
source ../linux-lts.conf
pkgbase="linux-lts"
pkgname=('linux-lts' 'linux-lts-headers' 'linux-lts-docs')
pkgver=${_kernelver}
_srcname=linux-${_basekernel}
pkgver=4.4.150
_srcname=linux-4.4
pkgrel=1
makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc')
arch=('x86_64')
......@@ -12,7 +10,7 @@ license=('GPL2')
url="http://www.kernel.org"
options=('!strip')
source=(http://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar.{xz,sign}
http://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.{xz,sign}
http://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.xz
# the main kernel config files
config.x86_64
# standard config files for mkinitcpio ramdisk
......@@ -20,9 +18,8 @@ source=(http://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar.{xz,sign}
change-default-console-loglevel.patch)
md5sums=('9a78fa2eb6c68ca5a40ed5af08142599'
'SKIP'
'6f3e057f552161d8dbc534f58b50f107'
'SKIP'
'99d3696dce99d4eebf297fc542f6b22d'
'271ce334e88a808cda42184d69ebd95b'
'3c82e548b482a80cb344c083a9e4e259'
'232b52576a62c7a333e9fe7a1e1ca359'
'df7fceae6ee5d7e7be7b60ecd7f6bb35')
validpgpkeys=(
......@@ -30,8 +27,10 @@ validpgpkeys=(
'647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman
)
_kernelname=-CHAKRA-LTS
prepare() {
cd ${srcdir}/linux-$_basekernel
cd ${srcdir}/$_srcname
# add upstream patch
msg "adding upstream patch"
......@@ -86,7 +85,7 @@ prepare() {
}
build() {
cd ${srcdir}/linux-$_basekernel
cd ${srcdir}/$_srcname