core/linux-clearfog to 4.4.16-1

This commit is contained in:
moonman 2016-08-10 02:31:49 -06:00
parent e1d8ad6879
commit 6bede3d949
3 changed files with 1736 additions and 1312 deletions

View file

@ -3,41 +3,41 @@
buildarch=4
pkgbase=linux-clearfog
pkgname=('linux-clearfog' 'linux-headers-clearfog')
pkgname=('linux-clearfog' 'linux-clearfog-headers')
# pkgname=linux-custom # Build kernel with a different name
_commit=635afced6e6084fa835dd4e48d2f4a05ae2f75b6
_srcname=linux-armada38x-${_commit}
_commit=3514bfacf63b33f9ad65c6f705aa7b4698f5450b
_srcname=linux-stable-${_commit}
_kernelname=${pkgname#linux}
pkgver=3.10.102
pkgrel=2
pkgver=4.4.16
pkgrel=1
cryptodev_commit=7a3a9ee1329f7224b4fc564b80ef8160457caf76
bfqver=v7r8
bfqver=v7r11
arch=('armv7h')
url="http://www.kernel.org/"
license=('GPL2')
makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'uboot-mkimage' 'git' 'lzop')
options=('!strip')
source=("linux-${_commit}::https://github.com/moonman/linux-armada38x/archive/${_commit}.tar.gz"
source=("linux-${_commit}::https://github.com/moonman/linux-stable/archive/${_commit}.tar.gz"
"cryptodev-${cryptodev_commit}.tar.gz::https://github.com/cryptodev-linux/cryptodev-linux/archive/${cryptodev_commit}.tar.gz"
"ftp://teambelgium.net/bfq/patches/${pkgver:0:4}.8+-${bfqver}/0001-block-cgroups-kconfig-build-bits-for-BFQ-${bfqver}-${pkgver:0:4}.8.patch"
"ftp://teambelgium.net/bfq/patches/${pkgver:0:4}.8+-${bfqver}/0002-block-introduce-the-BFQ-${bfqver}-I-O-sched-for-${pkgver:0:4}.8.patch"
"ftp://teambelgium.net/bfq/patches/${pkgver:0:4}.8+-${bfqver}/0003-block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-${bfqver}-for-${pkgver:0:4}.8+.patch"
"ftp://teambelgium.net/bfq/patches/${pkgver:0:3}.0-${bfqver}/0001-block-cgroups-kconfig-build-bits-for-BFQ-${bfqver}-${pkgver:0:3}.0.patch"
"ftp://teambelgium.net/bfq/patches/${pkgver:0:3}.0-${bfqver}/0002-block-introduce-the-BFQ-${bfqver}-I-O-sched-for-${pkgver:0:3}.0.patch"
"ftp://teambelgium.net/bfq/patches/${pkgver:0:3}.0-${bfqver}/0003-block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-${bfqver}-for.patch"
'config')
md5sums=('616432e9b3b5dbadb17c4e819eb50db4'
md5sums=('fda84c34d7e8313d116b288ed458f1b7'
'ad56ca4e2a29a3b76f3526c262d9fec1'
'003f1554be6b672100d2f2401a574d92'
'12ffe57584b4f2adcc3e184dc6948772'
'9e78f9f5364f8ebb981aeb235dcb7415'
'8d0803a948ae22bbac21b37eb3007d2a')
'c1d7fcfe88edb658375089c0a9cc1811'
'953133d5e387de2ad79ac0ae5c27cb6b'
'f0387e673975e9f2a5e05136948edece'
'6c4779b20bbabf4b1e9b586ea3a22b35')
prepare() {
cd "${srcdir}/${_srcname}"
msg2 "Add BFQ patches"
patch -Np1 -i "${srcdir}/0001-block-cgroups-kconfig-build-bits-for-BFQ-${bfqver}-${pkgver:0:4}.8.patch"
patch -Np1 -i "${srcdir}/0002-block-introduce-the-BFQ-${bfqver}-I-O-sched-for-${pkgver:0:4}.8.patch"
patch -Np1 -i "${srcdir}/0003-block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-${bfqver}-for-${pkgver:0:4}.8+.patch"
patch -Np1 -i "${srcdir}/0001-block-cgroups-kconfig-build-bits-for-BFQ-${bfqver}-${pkgver:0:3}.0.patch"
patch -Np1 -i "${srcdir}/0002-block-introduce-the-BFQ-${bfqver}-I-O-sched-for-${pkgver:0:3}.0.patch"
patch -Np1 -i "${srcdir}/0003-block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-${bfqver}-for.patch"
cat "${srcdir}/config" > ./.config
@ -138,9 +138,11 @@ package_linux-clearfog() {
mv "$pkgdir/lib" "$pkgdir/usr"
}
package_linux-headers-clearfog() {
package_linux-clearfog-headers() {
pkgdesc="Header files and scripts for building modules for linux kernel - SolidRun ClearFog"
provides=("linux-headers=${pkgver}")
conflicts=('linux-clearfog-headers' 'linux-headers')
replaces=("linux-headers-clearfog")
install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"
@ -190,8 +192,6 @@ package_linux-headers-clearfog() {
# add headers for lirc package
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/video"
cp drivers/video/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/video/"
for i in cpia2 pwc; do
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/${i}"
cp -a drivers/media/usb/${i}/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/${i}"
@ -233,11 +233,6 @@ package_linux-headers-clearfog() {
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/tuners"
cp drivers/media/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/tuners/"
# add xfs and shmem for aufs building
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs"
mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/mm"
cp fs/xfs/xfs_sb.h "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h"
#make uapi headers, some of them are needed for vpu/ipu usage
mkdir -p "${srcdir}/headers"
make headers_install ARCH=$KARCH INSTALL_HDR_PATH="${srcdir}/headers"

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,7 @@
# arg 2: the old package version
KERNEL_NAME=-clearfog
KERNEL_VERSION=3.10.102-1-ARCH
KERNEL_VERSION=4.4.16-1-ARCH
post_install () {
# updating module dependencies
@ -23,6 +23,6 @@ post_upgrade() {
echo ">>> Updating module dependencies. Please wait ..."
depmod ${KERNEL_VERSION}
echo "NOTE: You will probably need to copy /boot/uImage to the first partition"
echo "NOTE: You will probably need to copy /boot/zImage to the first partition"
echo " of your SD card."
}