diff options
author | Britney Fransen <brfransen@gmail.com> | 2016-01-22 20:33:48 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2016-01-22 20:33:48 (GMT) |
commit | 9ff105f3ff489972e0c9984d1fe8c0d50995e8b1 (patch) | |
tree | fce5730705aeb65f2ee3e67d8beb95946f7dbd45 /abs/core/linux/PKGBUILD | |
parent | 98d505858997aa3d1839e221868949b520f93c97 (diff) | |
download | linhes_pkgbuild-9ff105f3ff489972e0c9984d1fe8c0d50995e8b1.zip linhes_pkgbuild-9ff105f3ff489972e0c9984d1fe8c0d50995e8b1.tar.gz linhes_pkgbuild-9ff105f3ff489972e0c9984d1fe8c0d50995e8b1.tar.bz2 |
linux: update to 4.4
Diffstat (limited to 'abs/core/linux/PKGBUILD')
-rw-r--r-- | abs/core/linux/PKGBUILD | 72 |
1 files changed, 38 insertions, 34 deletions
diff --git a/abs/core/linux/PKGBUILD b/abs/core/linux/PKGBUILD index c9fa42a..0089b4b 100644 --- a/abs/core/linux/PKGBUILD +++ b/abs/core/linux/PKGBUILD @@ -4,25 +4,36 @@ pkgbase=linux # Build stock -ARCH kernel #pkgbase=linux-custom # Build kernel with a different name -_srcname=linux-3.18 -pkgver=3.18.24 -pkgrel=1 +_srcname=linux-4.4 +pkgver=4.4 +pkgrel=4 arch=('i686' 'x86_64') url="http://www.kernel.org/" license=('GPL2') makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc') options=('!strip') -source=("https://www.kernel.org/pub/linux/kernel/v3.x/${_srcname}.tar.xz" - #"https://www.kernel.org/pub/linux/kernel/v3.x/${_srcname}.tar.sign" - "https://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz" - #"https://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.sign" +source=("https://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar.xz" + "https://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar.sign" + #"https://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.xz" + #"https://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.sign" # the main kernel config files 'config' 'config.x86_64' # standard config files for mkinitcpio ramdisk 'linux.preset' 'change-default-console-loglevel.patch' - 'xc5000-add_IF_output_level_control.patch' - ) + '0001-sdhci-revert.patch' + 'tpmdd-devel-v3-base-platform-fix-binding-for-drivers-without-probe-callback.patch' + 'CVE-2016-0728.patch') + +sha256sums=('401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2' + 'SKIP' + 'd402c67f5a7334ac9e242344055ef4ac63fe43a1d8f1cda82eddd59d7242a63e' + 'ddeadf2910deb0803d4d4920c4dc7f07d3fb63bca564073aeb5f6181358f20d7' + 'f0d90e756f14533ee67afda280500511a62465b4f76adcc5effa95a40045179c' + '1256b241cd477b265a3c2d64bdc19ffe3c9bbcee82ea3994c590c2c76e767d99' + '5313df7cb5b4d005422bd4cd0dae956b2dadba8f3db904275aaf99ac53894375' + 'ab57037ecee0a425c612babdff47c831378bca0bff063a1308599989a350226d' + '03bed5b1c6ef34a917e218a46d38cd1347c5ab5693131996113c6cad275dc4e9') validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman @@ -34,19 +45,28 @@ prepare() { cd "${srcdir}/${_srcname}" # add upstream patch - patch -p1 -i "${srcdir}/patch-${pkgver}" + #patch -p1 -i "${srcdir}/patch-${pkgver}" # add latest fixes from stable queue, if needed # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git + # revert http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=9faac7b95ea4f9e83b7a914084cc81ef1632fd91 + # fixes #47778 sdhci broken on some boards + # https://bugzilla.kernel.org/show_bug.cgi?id=106541 + patch -Rp1 -i "${srcdir}/0001-sdhci-revert.patch" + + # fixes #47805 kernel panics on platform modules + # https://bugzilla.kernel.org/show_bug.cgi?id=110751 + patch -Np1 -i "${srcdir}/tpmdd-devel-v3-base-platform-fix-binding-for-drivers-without-probe-callback.patch" + + # fixes #47820 CVE-2016-0728.patch + patch -Np1 -i "${srcdir}/CVE-2016-0728.patch" + # set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param) # remove this when a Kconfig knob is made available by upstream # (relevant patch sent upstream: https://lkml.org/lkml/2011/7/26/227) patch -p1 -i "${srcdir}/change-default-console-loglevel.patch" - # xc5000 patches - patch -p1 -i "${srcdir}/xc5000-add_IF_output_level_control.patch" - if [ "${CARCH}" = "x86_64" ]; then cat "${srcdir}/config.x86_64" > ./.config else @@ -90,9 +110,6 @@ _package() { [ "${pkgbase}" = "linux" ] && groups=('base') depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7') optdepends=('crda: to set the correct wireless channels of your country') - provides=("kernel26${_kernelname}=${pkgver}") - conflicts=("kernel26${_kernelname}") - replaces=("kernel26${_kernelname}") backup=("etc/mkinitcpio.d/${pkgbase}.preset") install=linux.install @@ -130,8 +147,6 @@ _package() { rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build} # remove the firmware rm -rf "${pkgdir}/lib/firmware" - # gzip -9 all modules to save 100MB of space - find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \; # make room for external modules ln -s "../extramodules-${_basekernel}${_kernelname:--ARCH}" "${pkgdir}/lib/modules/${_kernver}/extramodules" # add real version for building modules and running depmod from post_install/upgrade @@ -145,18 +160,12 @@ _package() { mkdir -p "${pkgdir}/usr" mv "${pkgdir}/lib" "${pkgdir}/usr/" - #remove nouvea - find $pkgdir/usr/lib -name "nouvea*" -exec rm -f {} \; - # add vmlinux install -D -m644 vmlinux "${pkgdir}/usr/lib/modules/${_kernver}/build/vmlinux" } _package-headers() { pkgdesc="Header files and scripts for building modules for ${pkgbase/linux/Linux} kernel" - provides=("kernel26${_kernelname}-headers=${pkgver}") - conflicts=("kernel26${_kernelname}-headers") - replaces=("kernel26${_kernelname}-headers") install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}" @@ -270,13 +279,15 @@ _package-headers() { # remove unneeded architectures 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} + + # remove a files already in linux-docs package + rm -f "${pkgdir}/usr/lib/modules/${_kernver}/build/Documentation/kbuild/Kconfig.recursion-issue-01" + rm -f "${pkgdir}/usr/lib/modules/${_kernver}/build/Documentation/kbuild/Kconfig.recursion-issue-02" + rm -f "${pkgdir}/usr/lib/modules/${_kernver}/build/Documentation/kbuild/Kconfig.select-break" } _package-docs() { pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase/linux/Linux} kernel" - provides=("kernel26${_kernelname}-docs=${pkgver}") - conflicts=("kernel26${_kernelname}-docs") - replaces=("kernel26${_kernelname}-docs") cd "${srcdir}/${_srcname}" @@ -298,10 +309,3 @@ for _p in ${pkgname[@]}; do done # vim:set ts=8 sts=2 sw=2 et: -md5sums=('9e854df51ca3fef8bfe566dbd7b89241' - '3edcf56dba63548978fb66805a1e6167' - 'ed1d392d9feb77674e7a71c3eda060e6' - 'ce7ffe528b5920dc1e8b3d7229a66639' - 'eb14dcfd80c00852ef81ded6e826826a' - 'df7fceae6ee5d7e7be7b60ecd7f6bb35' - 'f8ffc0bf9c01329d21093adce05b9ebb') |