]> git.pld-linux.org Git - packages/microcode-data-intel.git/commitdiff
re-entrant install auto/th/microcode-data-intel-20170707-3
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 9 Sep 2017 18:45:02 +0000 (21:45 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 9 Sep 2017 18:45:02 +0000 (21:45 +0300)
microcode-data-intel.spec

index 294eb1f8e272d8f7c0fe130ae20369b4adc92982..fe5e0a58f183a0597146a54a354687f6b280eaeb 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Microcode definitions for Intel processors
 Summary(pl.UTF-8):     Definicje mikrokodu dla procesorów Intela
 Name:          microcode-data-intel
 Version:       20170707
-Release:       2
+Release:       3
 License:       INTEL SOFTWARE LICENSE AGREEMENT
 Group:         Base
 # http://downloadcenter.intel.com/, enter "processor microcode data file" to the search
@@ -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
@@ -51,15 +52,16 @@ fi
 ./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.107807 seconds and 4 git commands to generate.