X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=microcode-data-intel.spec;h=f4676d081c3d69fdd442690eed4344ce0247cea9;hb=d0bad5f;hp=fb4c66033dbca3687a35b2cc18e485325860aab9;hpb=b7f6af29e20f0f9c845d215a059dc36ff19b0c6f;p=packages%2Fmicrocode-data-intel.git diff --git a/microcode-data-intel.spec b/microcode-data-intel.spec index fb4c660..f4676d0 100644 --- a/microcode-data-intel.spec +++ b/microcode-data-intel.spec @@ -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