git » linux-firmware.git » commit 9010b26

Bump to latest git revision.

author Evangelos Foutras
2014-10-19 11:07:03 UTC
committer Evangelos Foutras
2014-10-19 11:07:03 UTC
parent db589f691c596f123b969c53cd215f5cb0041e82

Bump to latest git revision.

- Add tmpfiles.d file to trigger microcode updates on AMD systems on boot
  now that our kernels are built with CONFIG_MICROCODE=y.

PKGBUILD +13 -9

diff --git a/PKGBUILD b/PKGBUILD
index 61e690d..ea24c98 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
 
 pkgname=linux-firmware
 # Commit date + git rev-parse --short origin/master
-pkgver=20140828.13eb208
+pkgver=20141009.0e5f637
 pkgrel=1
 pkgdesc="Firmware files for Linux"
 makedepends=('git')
@@ -35,17 +35,21 @@ replaces=('kernel26-firmware'
           'rt2x00-rt71w-fw'
           'amd-ucode')
 options=(!strip)
-source=('git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git#commit=13eb208681bf7cc7434189dd925e587d12707d50')
+source=('git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git#commit=0e5f637')
 md5sums=('SKIP')
 
 package() {
   cd "${srcdir}/${pkgname}"
-  # remove not needed Makefile #35236
-  rm Makefile
-  install -d -m755 "${pkgdir}/usr/lib/firmware"
-  cp -a * "${pkgdir}/usr/lib/firmware/"
-  install -d -m755 "${pkgdir}/usr/share/licenses/linux-firmware/"
-  rm -f "${pkgdir}/usr/lib/firmware/"{README*,configure,GPL*}
-  mv "${pkgdir}/usr/lib/firmware"/{LICEN*,WHENCE} "${pkgdir}/usr/share/licenses/linux-firmware/"
+
+  make DESTDIR="${pkgdir}" FIRMWAREDIR=/usr/lib/firmware install
+  rm "${pkgdir}/usr/lib/firmware/"{Makefile,README,configure,GPL-3}
+
+  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -Dm644 LICEN* WHENCE "${pkgdir}/usr/share/licenses/linux-firmware/"
+
+  # Trigger a microcode reload for configurations not using early updates
+  install -d "${pkgdir}/usr/lib/tmpfiles.d"
+  echo 'w /sys/devices/system/cpu/microcode/reload - - - - 1' \
+    >"${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
 }
 # vim:set ts=2 sw=2 et: