APKBUILD 1 KB
Newer Older
1
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2
pkgname=intel-ucode
3
pkgver=20180807a
4 5 6
pkgrel=0
pkgdesc="Microcode update files for Intel CPUs"
arch=noarch
7 8
url="https://downloadcenter.intel.com/SearchResult.aspx?lang=eng&keyword=%22microcode%22"
license="custom"
9 10
makedepens="iucode-tool"
source="https://downloadmirror.intel.com/28087/eng/microcode-$pkgver.tgz"
11
options="!check"
12 13

build() {
14
	cd "$srcdir"
15 16 17 18 19 20
	rm -f intel-ucode/list intel-ucode-with-caveats/list
	mkdir -p kernel/x86/microcode
	iucode_tool -w kernel/x86/microcode/GenuineIntel.bin \
		intel-ucode/ intel-ucode-with-caveats/
	echo kernel/x86/microcode/GenuineIntel.bin | \
		 cpio -o -H newc -R 0:0 > intel-ucode.img
21 22 23
}

package() {
24
	cd "$srcdir"
25 26
	install -D -m0644 intel-ucode.img "$pkgdir"/boot/intel-ucode.img
	install -Dm644 license "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
27
}
28

29
sha512sums="3cd6794a5ce26e86f7b644e523ba978699316046e593da215b73b17c4b43049ac4a81636e2ce3e727d06c2efbac98657764aa3ff355edb429127585bb49a9b10  microcode-20180807a.tgz"