]>
Commit | Line | Data |
---|---|---|
165fd4a0 | 1 | Summary: Microcode definitions for Intel processors |
1db93e84 | 2 | Summary(pl.UTF-8): Definicje mikrokodu dla procesorów Intela |
165fd4a0 | 3 | Name: microcode-data-intel |
fad57655 | 4 | Version: 20220419 |
4806c0f5 | 5 | Release: 1 |
165fd4a0 AM |
6 | License: INTEL SOFTWARE LICENSE AGREEMENT |
7 | Group: Base | |
d56708e1 | 8 | Source0: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-%{version}.tar.gz |
fad57655 | 9 | # Source0-md5: e70218857d0c111e4e4e5e6a9dd2172c |
7a1e9f38 | 10 | BuildRequires: iucode-tool |
fd284e49 | 11 | Provides: microcode-data |
476af782 | 12 | BuildArch: noarch |
165fd4a0 AM |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
16 | The microcode data file for Linux contains the latest microcode | |
17 | definitions for all Intel processors. | |
18 | ||
1db93e84 JB |
19 | %description -l pl.UTF-8 |
20 | Te pliki danych mikrokodu dla Linuksa zawierają najnowsze definicje | |
21 | mikrokodu dla procesorów Intela. | |
22 | ||
ca91a51d AM |
23 | %package initrd |
24 | Summary: Microcode for initrd | |
25 | Summary(pl.UTF-8): Mikrokod dla initrd | |
26 | Group: Base | |
27 | ||
28 | %description initrd | |
29 | Intel microcode for initrd. | |
30 | ||
31 | %description initrd -l pl.UTF-8 | |
32 | Mikrokod dla procesorów Intel dla initrd. | |
33 | ||
165fd4a0 | 34 | %prep |
d56708e1 | 35 | %setup -q -n Intel-Linux-Processor-Microcode-Data-Files-microcode-%{version} |
165fd4a0 AM |
36 | |
37 | %build | |
05dd8121 | 38 | %{_sbindir}/iucode_tool intel-ucode*/*-* -tb --write-to=microcode.bin |
343a5efd | 39 | |
e168b899 ER |
40 | install -d kernel/x86/microcode |
41 | ln microcode.bin kernel/x86/microcode/GenuineIntel.bin | |
42 | echo kernel/x86/microcode/GenuineIntel.bin | cpio -o -H newc -R 0:0 > intel-ucode.img | |
43 | ||
165fd4a0 AM |
44 | %install |
45 | rm -rf $RPM_BUILD_ROOT | |
476af782 | 46 | install -d $RPM_BUILD_ROOT{/lib/firmware,/boot} |
343a5efd | 47 | |
e168b899 ER |
48 | cp -a intel-ucode $RPM_BUILD_ROOT/lib/firmware |
49 | cp -p intel-ucode.img $RPM_BUILD_ROOT/boot | |
ca91a51d | 50 | |
165fd4a0 AM |
51 | %clean |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
c4da47d4 | 56 | %doc README.md releasenote.md security.md |
343a5efd | 57 | /lib/firmware/intel-ucode |
ca91a51d AM |
58 | |
59 | %files initrd | |
60 | %defattr(644,root,root,755) | |
c4da47d4 | 61 | %doc README.md releasenote.md security.md |
ca91a51d | 62 | /boot/intel-ucode.img |