]> git.pld-linux.org Git - packages/microcode-data-intel.git/blobdiff - microcode-data-intel.spec
up to 20201112
[packages/microcode-data-intel.git] / microcode-data-intel.spec
index fb4c66033dbca3687a35b2cc18e485325860aab9..f4676d081c3d69fdd442690eed4344ce0247cea9 100644 (file)
@@ -1,17 +1,13 @@
 Summary:       Microcode definitions for Intel processors
 Summary(pl.UTF-8):     Definicje mikrokodu dla procesorów Intela
 Name:          microcode-data-intel
-Version:       20180108
+Version:       20201112
 Release:       1
 License:       INTEL SOFTWARE LICENSE AGREEMENT
 Group:         Base
-# http://downloadcenter.intel.com/, enter "processor microcode data file" to the search
-Source0:       https://downloadmirror.intel.com/27431/eng/microcode-%{version}.tgz
-# Source0-md5: 871df55f0ab010ee384dabfc424f2c12
-# Tool for splitting Intel's microcode file. From Fedora
-Source1:       intel-microcode2ucode.c
-# Produces single file for use by boot loader (like grub)
-Source2:       intel-microcode2ucode-single.c
+Source0:       https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-%{version}.tar.gz
+# Source0-md5: d48388782e322c258e17f7d79201a9e0
+BuildRequires: iucode-tool
 Provides:      microcode-data
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -36,19 +32,10 @@ Intel microcode for initrd.
 Mikrokod dla procesorów Intel dla initrd.
 
 %prep
-%setup -qc
+%setup -q -n Intel-Linux-Processor-Microcode-Data-Files-microcode-%{version}
 
 %build
-if ! grep -q 0x00000000 microcode.dat; then
-       echo >&2 "microcode.dat contains giberrish"
-       exit 1
-fi
-
-%{__cc} %{rpmcflags} %{rpmcppflags} %{rpmldflags} -Wall -o intel-microcode2ucode %{SOURCE1}
-%{__cc} %{rpmcflags} %{rpmcppflags} %{rpmldflags} -Wall -o intel-microcode2ucode-single %{SOURCE2}
-
-./intel-microcode2ucode microcode.dat > 1.log
-./intel-microcode2ucode-single microcode.dat > 2.log
+%{_sbindir}/iucode_tool intel-ucode*/*-* -tb --write-to=microcode.bin
 
 install -d kernel/x86/microcode
 ln microcode.bin kernel/x86/microcode/GenuineIntel.bin
@@ -66,8 +53,10 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc README.md releasenote.md security.md
 /lib/firmware/intel-ucode
 
 %files initrd
 %defattr(644,root,root,755)
+%doc README.md releasenote.md security.md
 /boot/intel-ucode.img
This page took 0.039119 seconds and 4 git commands to generate.