/[packages]/updates/5/microcode/current/SPECS/microcode.spec
ViewVC logotype

Annotation of /updates/5/microcode/current/SPECS/microcode.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1108470 - (hide annotations) (download)
Sun Jun 25 16:32:26 2017 UTC (6 years, 9 months ago) by tmb
File size: 1888 byte(s)
update Intel microcode to 2017-05-11
1 tmb 1108470 # define intel date once for reuse
2     %define intel_date 20170511
3    
4 tmb 19854 Summary: Intel / AMD CPU Microcode
5     Name: microcode
6 tmb 1108470 Version: 0.%{intel_date}
7 tmb 986056 Release: %mkrel 1
8 tmb 19854 Group: System/Kernel and hardware
9     License: Distributable
10 tmb 1108470 # use the debian way to get microcodes for older CPUs as Intel removes old firmwares from recent releases
11     Source0: http://http.debian.net/debian/pool/non-free/i/intel-microcode/intel-microcode_3.%{intel_date}.1.tar.xz
12     # use fakeroot /sbin/update-amd-microcode --download-only (from microcode_ctl) to update
13 tmb 19854 Source1: amd-ucode-latest.tar
14     Buildarch: noarch
15 tmb 1108470 BuildRequires: iucode-tool
16 tv 559054 BuildRequires: microcode_ctl
17 tmb 751292 # (tmb) conflict lock elision enabled glibc as it will crash
18     Conflicts: glibc < 6:2.20-11
19 tmb 19854
20     %description
21     Since PentiumPro, Intel CPU are made of a RISC chip and of a microcode whose
22     purpose is to decompose "old" ia32 instruction into new risc ones.
23     P6 familly is concerned: PPro, PII, Celeron, PIII, Celeron2.
24     Recent kernels have the ability to update this microcode.
25    
26     The microcode update is volatile and needs to be uploaded on each system
27     boot. I.e. it doesn't reflash your cpu permanently.
28     Reboot and it reverts back to the old microcode.
29    
30     This package contains microcode for Intel CPU, as well as microcode for
31     AMD CPU (AMD Phenom(TM), AMD Opteron(TM) and AMD Turion(TM) 64 Ultra).
32    
33     %prep
34     %setup -q -T -c
35    
36     %build
37    
38 tmb 1108470 # build the microcode file from several old ones
39     tar xvf %{SOURCE0}
40     pushd intel-microcode-3.%{intel_date}.1
41     make
42     mkdir intel-ucode
43     /sbin/iucode_tool -Kintel-ucode intel-microcode.bin
44     popd
45    
46 tmb 19854 %install
47 zezinho 251615 rm -rf %{buildroot}
48 tmb 19854
49 tv 559054 mkdir -p %{buildroot}/lib/firmware/intel-ucode
50 tmb 1108470 pushd intel-microcode-3.%{intel_date}.1
51 tv 559054 install -m 644 intel-ucode/* %{buildroot}/lib/firmware/intel-ucode
52 tmb 19854
53 zezinho 251615 tar xf %{SOURCE1} -C %{buildroot}/lib/firmware
54 tmb 19854
55     %clean
56    
57     %files
58     %defattr(-,root,root,-)
59 tmb 999906 /lib/firmware/amd-ucode/
60 tv 559054 /lib/firmware/intel-ucode/

  ViewVC Help
Powered by ViewVC 1.1.30