# Maintainer: Marian Buschsieweke pkgname=intel-ucode pkgver=20230808 pkgrel=0 pkgdesc="Microcode update files for Intel CPUs" arch="x86 x86_64" url="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files" license="custom" makedepends="iucode-tool" source="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-$pkgver.tar.gz" options="!check" builddir="$srcdir/Intel-Linux-Processor-Microcode-Data-Files-microcode-$pkgver" # (Taken from https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/blob/main/releasenote.md) # secfixes: # 20230808-r0: # - CVE-2022-40982 # - CVE-2022-41804 # - CVE-2023-23908 # 20230214-r0: # - CVE-2022-21216 # - CVE-2022-33196 # - CVE-2022-38090 # 20220809-r0: # - CVE-2022-21233 # 20220510-r0: # - CVE-2022-21151 # 20220207-r0: # - CVE-2021-0127 # - CVE-2021-0146 # 20210608-r0: # - CVE-2020-24489 # - CVE-2020-24511 # - CVE-2020-24513 # 20210216-r0: # - CVE-2020-8698 # 20201112-r0: # - CVE-2020-8694 # - CVE-2020-8698 # 20201110-r0: # - CVE-2020-8694 # - CVE-2020-8698 # 20200609-r0: # - CVE-2020-0548 # 20191113-r0: # - CVE-2019-11135 # 20191112-r0: # - CVE-2018-12126 # - CVE-2019-11135 # 20190918-r0: # - CVE-2019-11135 # 20190618-r0: # - CVE-2018-12126 # 20190514a-r0: # - CVE-2018-12126 # - CVE-2017-5754 # - CVE-2017-5753 build() { 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 } package() { install -D -m0644 intel-ucode.img "$pkgdir"/boot/intel-ucode.img install -Dm644 license "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } sha512sums=" 8316eb9d35b315e630c6c9fab1ba601b91e72cc42926ef14e7c2b77e7025d276ae06c143060f44cd1a873d3879c067d11ad82e1886c796e6be6bf466243ad85b microcode-20230808.tar.gz "