Revert "intel-ucode: try late method"

This reverts commit b4b75d6af1.
This commit is contained in:
Weng Xuetian 2015-12-20 05:35:55 +01:00
parent d2289b39da
commit 0d8a8eb0af

View File

@ -3,13 +3,12 @@
pkgname=intel-ucode
pkgver=20150121
pkgrel=2
pkgrel=1
pkgdesc="Microcode update files for Intel CPUs"
arch=('any')
url="http://downloadcenter.intel.com/SearchResult.aspx?lang=eng&keyword=%22microcode%22"
replaces=('microcode_ctl')
license=('custom')
install=$pkgname.install
# Some random "download id" that intel has in their downloadcenter
_dlid=24661
source=(http://downloadmirror.intel.com/${_dlid}/eng/microcode-${pkgver}.tgz
@ -17,7 +16,7 @@ source=(http://downloadmirror.intel.com/${_dlid}/eng/microcode-${pkgver}.tgz
intel-microcode2ucode.c)
sha256sums=('23353b93bb421971496cea5e9f9d390ce0ed22580a8cc45ae7b3b322dcd8f6b3'
'6983e83ec10c6467fb9101ea496e0443f0574c805907155118e2c9f0bbea97b6'
'03a13a966316a4d3d9c7e1b46007fd4b80911aea5ddd957ddf33ce660efe03de')
'c51b1b1d8b4b28e7d5d007917c1e444af1a2ff04a9408aa9067c0e57d70164de')
build() {
cd "$srcdir"
gcc -Wall ${CFLAGS} -o intel-microcode2ucode intel-microcode2ucode.c
@ -25,15 +24,12 @@ build() {
}
package() {
# changed mircocode update to the current Arch way -- disabling TSX can prevent
# a late microcode update from working, because systemd crashes before applying the update
# for packagers who want to update:
# We don't use same method as arch linux for microcode
# copy it to /usr/lib/firmware/intel-ucode/ is the right way to go for chakra
cd "$srcdir"
install -d -m755 "${pkgdir}"/boot
mkdir -p kernel/x86/microcode
mv microcode.bin kernel/x86/microcode/GenuineIntel.bin
echo kernel/x86/microcode/GenuineIntel.bin | bsdcpio -o -H newc -R 0:0 > "${pkgdir}"/boot/intel-ucode.img
install -d -m755 "${pkgdir}"/usr/lib/firmware/intel-ucode/
cp intel-ucode/* "${pkgdir}"/usr/lib/firmware/intel-ucode/
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}