diff options
author | Josip Ponjavic | 2019-09-06 17:47:45 +0200 |
---|---|---|
committer | Josip Ponjavic | 2019-09-06 17:47:45 +0200 |
commit | 7245ac242990cdbf699e00d1b9afce3a75796360 (patch) | |
tree | ea3df74f909c6c3fe60e1aa08473b054ba919817 /PKGBUILD | |
parent | a5bbcc5d810a425b04c9a7e2b4178f28a33e9abf (diff) | |
download | aur-7245ac242990cdbf699e00d1b9afce3a75796360.tar.gz |
4.19.71-1 (clr 4.19.69-74) update kernel gcc patch, remove microcode
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 73 |
1 files changed, 31 insertions, 42 deletions
@@ -11,7 +11,7 @@ _enable_gcc_more_v="y" # Optionally select a sub architecture by number if building in a clean chroot # Leaving this entry blank will require user interaction during the build # which will cause a failure to build if using makechrootpkg. Note that the -# generic (default) option is 27. +# generic (default) option is 30. # # 1. AMD Opteron/Athlon64/Hammer/K8 (MK8) # 2. AMD Opteron/Athlon64/Hammer/K8 with SSE3 (MK8SSE3) @@ -31,27 +31,27 @@ _enable_gcc_more_v="y" # 16. Intel Nehalem (MNEHALEM) # 17. Intel Westmere (MWESTMERE) # 18. Intel Silvermont (MSILVERMONT) -# 19. Intel Sandy Bridge (MSANDYBRIDGE) -# 20. Intel Ivy Bridge (MIVYBRIDGE) -# 21. Intel Haswell (MHASWELL) -# 22. Intel Broadwell (MBROADWELL) -# 23. Intel Skylake (MSKYLAKE) -# 24. Intel Skylake X (MSKYLAKEX) -# 25. Intel Cannon Lake (MCANNONLAKE) -# 26. Intel Ice Lake (MICELAKE) -# 27. Generic-x86-64 (GENERIC_CPU) -# 28. Native optimizations autodetected by GCC (MNATIVE) +# 19. Intel Goldmont (MGOLDMONT) +# 20. Intel Goldmont Plus (MGOLDMONTPLUS) +# 21. Intel Sandy Bridge (MSANDYBRIDGE) +# 22. Intel Ivy Bridge (MIVYBRIDGE) +# 23. Intel Haswell (MHASWELL) +# 24. Intel Broadwell (MBROADWELL) +# 25. Intel Skylake (MSKYLAKE) +# 26. Intel Skylake X (MSKYLAKEX) +# 27. Intel Cannon Lake (MCANNONLAKE) +# 28. Intel Ice Lake (MICELAKE) +# 29. Intel Cascade Lake (MCASCADELAKE) +# 30. Generic-x86-64 (GENERIC_CPU) +# 31. Native optimizations autodetected by GCC (MNATIVE) _subarch= -# Compile ONLY probed modules -# Build in only the modules that you currently have probed in your system VASTLY -# reducing the number of modules built and the build time. -# -# WARNING - ALL modules must be probed BEFORE you begin making the pkg! +# Compile ONLY used modules to VASTLY reduce the number of modules built +# and the build time. # # To keep track of which modules are needed for your specific system/hardware, # give module_db script a try: https://aur.archlinux.org/packages/modprobed-db -# This PKGBUILD will call it directly to probe all the modules you have logged! +# This PKGBUILD read the database kept if it exists # # More at this wiki page ---> https://wiki.archlinux.org/index.php/Modprobed-db _localmodcfg= @@ -59,24 +59,22 @@ _localmodcfg= ### IMPORTANT: Do no edit below this line unless you know what you're doing _major=4.19 -_minor=69 +_minor=71 _srcname=linux-${_major} -_clr=${_major}.63-67 +_clr=${_major}.69-74 pkgbase=linux-clear-lts2018 pkgver=${_major}.${_minor} pkgrel=1 arch=('x86_64') url="https://github.com/clearlinux-pkgs/linux-lts2018" license=('GPL2') -makedepends=('bc' 'git' 'inetutils' 'kmod' 'libelf' 'linux-firmware' 'xmlto') +makedepends=('bc' 'git' 'inetutils' 'kmod' 'libelf' 'xmlto') options=('!strip') -_ucode='20190618' -_gcc_more_v='20190714' +_gcc_more_v='20190822' source=( "https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${_major}.tar".{xz,sign} "https://cdn.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.xz" "${pkgbase}::git+https://github.com/clearlinux-pkgs/linux-lts2018.git#tag=${_clr}" - "intel-ucode-${_ucode}.tar.gz::https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-${_ucode}.tar.gz" "enable_additional_cpu_optimizations-$_gcc_more_v.tar.gz::https://github.com/graysky2/kernel_gcc_patch/archive/$_gcc_more_v.tar.gz" '60-linux.hook' # pacman hook for depmod '90-linux.hook' # pacman hook for initramfs regeneration @@ -101,7 +99,7 @@ prepare() { echo "$_kernelname" > localversion.20-pkgname ### Add Clearlinux patches - for i in $(grep '^Patch' ${srcdir}/${pkgbase}/linux-lts2018.spec | grep -Ev '^Patch0126|^Patch0011' | sed -n 's/.*: //p'); do + for i in $(grep '^Patch' ${srcdir}/${pkgbase}/linux-lts2018.spec | grep -Ev '^Patch0126' | sed -n 's/.*: //p'); do msg2 "Applying patch ${i}..." patch -Np1 -i "$srcdir/${pkgbase}/${i}" done @@ -124,13 +122,6 @@ CONFIG_MODULE_COMPRESS_XZ=y|' ./.config make olddefconfig - ### Copying i915 firmware and intel-ucode - msg2 "Copying i915 firmware and intel-ucode-${_ucode}..." - cp -a /usr/lib/firmware/i915 firmware/ - cp -a ${srcdir}/Intel-Linux-Processor-Microcode-Data-Files-microcode-${_ucode}/intel-ucode firmware/ - cp ${srcdir}/Intel-Linux-Processor-Microcode-Data-Files-microcode-${_ucode}/intel-ucode-with-caveats/06* firmware/intel-ucode/ - rm -f firmware/intel-ucode/0f* - ### Patch source to unlock additional gcc CPU optimizations # https://github.com/graysky2/kernel_gcc_patch if [ "${_enable_gcc_more_v}" = "y" ]; then @@ -152,14 +143,13 @@ CONFIG_MODULE_COMPRESS_XZ=y|' ./.config ### Optionally load needed modules for the make localmodconfig # See https://aur.archlinux.org/packages/modprobed-db if [ -n "$_localmodcfg" ]; then - msg2 "If you have modprobed-db installed, running it in recall mode now" - if [ -e /usr/bin/modprobed-db ]; then - [[ -x /usr/bin/sudo ]] || { - echo "Cannot call modprobe with sudo. Install sudo and configure it to work with this user." - exit 1; } - sudo /usr/bin/modprobed-db recall - make localmodconfig - fi + if [ -f $HOME/.config/modprobed.db ]; then + msg2 "Running Steven Rostedt's make localmodconfig now" + make LSMOD=$HOME/.config/modprobed.db localmodconfig + else + msg2 "No modprobed.db data found" + exit + fi fi ### do not run `make olddefconfig` as it sets default options @@ -330,10 +320,9 @@ done sha256sums=('0c68f5655528aed4f99dae71a5b259edc93239fa899e2df79c055275c21749a1' 'SKIP' - '7d038a35fc8b9e599a0b823a67c480251603c8a42d84a92438d8e97a56ccb503' + 'ed63d8d74551c09b978e8e68a22b125e95a2fbfdcd09abc90c29b3ffb38d5431' 'SKIP' - '74ec7415988d40fa53686d994cf8cb27accdbd35c5373c4c3afc2e93372ebba5' - '2466fb4aecc66d1b258b4cbdb2f215b5099f266d8c4386bb62ad1a0acd0caf5b' + '8c11086809864b5cef7d079f930bd40da8d0869c091965fa62e95de9a0fe13b5' 'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21' 'c043f3033bb781e2688794a59f6d1f7ed49ef9b13eb77ff9a425df33a244a636' 'ed9d35cb7d7bd829ff6253353efa5e2d119820fe4f4310aea536671f5e4caa37' |