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