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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1191401 - (show annotations) (download)
Sun Jan 7 21:55:09 2018 UTC (2 years, 1 month ago) by tmb
File size: 1879 byte(s)
add Amd microcode for fam17h (Zen)
1 # define intel date once for reuse
2 %define intel_date 20171215
3
4 Summary: Intel / AMD CPU Microcode
5 Name: microcode
6 Version: 0.%{intel_date}
7 Release: %mkrel 2
8 Group: System/Kernel and hardware
9 License: Distributable
10 # 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 Source1: amd-ucode-latest.tar
14 Source2: amd-ucode-fam17h.tar
15 Buildarch: noarch
16 BuildRequires: iucode-tool
17 BuildRequires: microcode_ctl
18 # (tmb) conflict lock elision enabled glibc as it will crash
19 Conflicts: glibc < 6:2.20-11
20
21 %description
22 Since PentiumPro, Intel CPU are made of a RISC chip and of a microcode whose
23 purpose is to decompose "old" ia32 instruction into new risc ones.
24 P6 familly is concerned: PPro, PII, Celeron, PIII, Celeron2.
25 Recent kernels have the ability to update this microcode.
26
27 The microcode update is volatile and needs to be uploaded on each system
28 boot. I.e. it doesn't reflash your cpu permanently.
29 Reboot and it reverts back to the old microcode.
30
31 This package contains microcode for Intel and Amd CPUs.
32
33 %prep
34 %setup -q -T -c
35
36 %build
37
38 # 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 %install
47 rm -rf %{buildroot}
48
49 mkdir -p %{buildroot}/lib/firmware/intel-ucode
50 pushd intel-microcode-3.%{intel_date}.1
51 install -m 644 intel-ucode/* %{buildroot}/lib/firmware/intel-ucode
52
53 tar xf %{SOURCE1} -C %{buildroot}/lib/firmware
54 tar xf %{SOURCE2} -C %{buildroot}/lib/firmware
55
56 %clean
57
58 %files
59 %defattr(-,root,root,-)
60 /lib/firmware/amd-ucode/
61 /lib/firmware/intel-ucode/

  ViewVC Help
Powered by ViewVC 1.1.26