]> git.pld-linux.org Git - packages/microcode-data-intel.git/blobdiff - microcode-data-intel.spec
- up to 20171117
[packages/microcode-data-intel.git] / microcode-data-intel.spec
index 1633f9ecd395d857009b1d09386f709fc3c0c22d..f624956998e7d672269726b5f957376d209a0cf9 100644 (file)
@@ -1,13 +1,13 @@
 Summary:       Microcode definitions for Intel processors
 Summary(pl.UTF-8):     Definicje mikrokodu dla procesorów Intela
 Name:          microcode-data-intel
-Version:       20170707
-Release:       2
+Version:       20171117
+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/26925/eng/microcode-%{version}.tgz
-# Source0-md5: fe4bcb12e4600629a81fb65208c34248
+Source0:       http://downloadmirror.intel.com/27337/eng/microcode-%{version}.tgz
+# Source0-md5: b294245d1f7f6c20f01edba53185f258
 # Tool for splitting Intel's microcode file. From Fedora
 Source1:       intel-microcode2ucode.c
 # Produces single file for use by boot loader (like grub)
@@ -39,6 +39,7 @@ Mikrokod dla procesorów Intel dla initrd.
 %prep
 %setup -qc
 
+
 %build
 if ! grep -q 0x00000000 microcode.dat; then
        echo >&2 microcode.dat contains giberrish
@@ -47,18 +48,20 @@ fi
 
 %{__cc} %{rpmcflags} %{rpmcppflags} %{rpmldflags} -Wall -o intel-microcode2ucode %{SOURCE1}
 %{__cc} %{rpmcflags} %{rpmcppflags} %{rpmldflags} -Wall -o intel-microcode2ucode-single %{SOURCE2}
-./intel-microcode2ucode microcode.dat > /dev/null || exit 1
-./intel-microcode2ucode-single microcode.dat > /dev/null || exit 1
+
+./intel-microcode2ucode microcode.dat > 1.log
+./intel-microcode2ucode-single microcode.dat > 2.log
+
+install -d kernel/x86/microcode
+ln microcode.bin kernel/x86/microcode/GenuineIntel.bin
+echo kernel/x86/microcode/GenuineIntel.bin | cpio -o -H newc -R 0:0 > intel-ucode.img
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/lib/firmware,/boot}
 
-mv intel-ucode $RPM_BUILD_ROOT/lib/firmware
-
-install -d kernel/x86/microcode
-mv microcode.bin kernel/x86/microcode/GenuineIntel.bin
-echo kernel/x86/microcode/GenuineIntel.bin | cpio -o -H newc -R 0:0 > $RPM_BUILD_ROOT/boot/intel-ucode.img
+cp -a intel-ucode $RPM_BUILD_ROOT/lib/firmware
+cp -p intel-ucode.img $RPM_BUILD_ROOT/boot
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.155238 seconds and 4 git commands to generate.