summaryrefslogtreecommitdiff
path: root/opt/intel-ucode/MAKEPKG
blob: 2924ac801107cbfd063b0bace21abfc869453e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/mkpkg
# description: Intel CPU microcode early initramfs image
# url: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files

name=intel-ucode
version=20260925
release=1
makedeps=(cpio)
source=(https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/refs/tags/microcode-$version.tar.gz)

sha256sums=(
    "0ec19023dad1e6dd0c5909174b8dff2555b91cf01671e36271a1ef36655c0cfc"
)

build() {
    cd Intel-Linux-Processor-Microcode-Data-Files-microcode-$version

    mkdir -p kernel/x86/microcode
    cat intel-ucode/* > kernel/x86/microcode/GenuineIntel.bin

    find kernel | cpio -o -H newc --owner=0:0 > intel-ucode.img

    install -Dm644 intel-ucode.img $PKG/boot/efi/intel-ucode.img
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh