X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=microcode-data-intel.spec;h=d39bc50ebc4b4c7a7bbef78959fff828f8ee5bae;hb=71d67cf;hp=55d431ca41130a58bdb4ee01df0c044c79128421;hpb=e7ade0a9a21df2fedff39166212ff64f60877f58;p=packages%2Fmicrocode-data-intel.git diff --git a/microcode-data-intel.spec b/microcode-data-intel.spec index 55d431c..d39bc50 100644 --- a/microcode-data-intel.spec +++ b/microcode-data-intel.spec @@ -1,18 +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: 20200520 Release: 1 License: INTEL SOFTWARE LICENSE AGREEMENT Group: Base -# http://downloadcenter.intel.com/, enter "processor microcode data file" to the search -Source0: http://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 -BuildRequires: cpio +Source0: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-%{version}.tar.gz +# Source0-md5: 9668f52e26c44290722296440e909a45 +BuildRequires: iucode-tool Provides: microcode-data BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -37,20 +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 @@ -68,8 +53,10 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%doc releasenote /lib/firmware/intel-ucode %files initrd %defattr(644,root,root,755) +%doc releasenote /boot/intel-ucode.img