1 Summary: Microcode definitions for Intel processors
2 Summary(pl.UTF-8): Definicje mikrokodu dla procesorów Intela
3 Name: microcode-data-intel
6 License: INTEL SOFTWARE LICENSE AGREEMENT
8 # http://downloadcenter.intel.com/, enter "processor microcode data file" to the search
9 Source0: http://downloadmirror.intel.com/27431/eng/microcode-%{version}.tgz
10 # Source0-md5: 871df55f0ab010ee384dabfc424f2c12
11 # Tool for splitting Intel's microcode file. From Fedora
12 Source1: intel-microcode2ucode.c
13 # Produces single file for use by boot loader (like grub)
14 Source2: intel-microcode2ucode-single.c
16 Provides: microcode-data
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 The microcode data file for Linux contains the latest microcode
22 definitions for all Intel processors.
24 %description -l pl.UTF-8
25 Te pliki danych mikrokodu dla Linuksa zawierają najnowsze definicje
26 mikrokodu dla procesorów Intela.
29 Summary: Microcode for initrd
30 Summary(pl.UTF-8): Mikrokod dla initrd
34 Intel microcode for initrd.
36 %description initrd -l pl.UTF-8
37 Mikrokod dla procesorów Intel dla initrd.
44 if ! grep -q 0x00000000 microcode.dat; then
45 echo >&2 microcode.dat contains giberrish
49 %{__cc} %{rpmcflags} %{rpmcppflags} %{rpmldflags} -Wall -o intel-microcode2ucode %{SOURCE1}
50 %{__cc} %{rpmcflags} %{rpmcppflags} %{rpmldflags} -Wall -o intel-microcode2ucode-single %{SOURCE2}
52 ./intel-microcode2ucode microcode.dat > 1.log
53 ./intel-microcode2ucode-single microcode.dat > 2.log
55 install -d kernel/x86/microcode
56 ln microcode.bin kernel/x86/microcode/GenuineIntel.bin
57 echo kernel/x86/microcode/GenuineIntel.bin | cpio -o -H newc -R 0:0 > intel-ucode.img
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT{/lib/firmware,/boot}
63 cp -a intel-ucode $RPM_BUILD_ROOT/lib/firmware
64 cp -p intel-ucode.img $RPM_BUILD_ROOT/boot
67 rm -rf $RPM_BUILD_ROOT
70 %defattr(644,root,root,755)
71 /lib/firmware/intel-ucode
74 %defattr(644,root,root,755)