Accepting request 563888 from home:trenn:branches:Base:System

- Fix URL to point to latest microcode on Intel web site
- Fix double size/content microcode bug (bsc#1075680)
- Add an overview of provided Intel processor microcodes for:
  family, model, stepping and the revision in:
  /usr/share/doc/packages/ucode-intel/microcode_revisions.txt

OBS-URL: https://build.opensuse.org/request/show/563888
OBS-URL: https://build.opensuse.org/package/show/Base:System/ucode-intel?expand=0&rev=56
This commit is contained in:
Thomas Renninger 2018-01-12 17:06:39 +00:00 committed by Git OBS Bridge
parent 10e04d0a77
commit e0d61b2a4b
2 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Jan 12 16:23:02 UTC 2018 - trenn@suse.de
- Fix URL to point to latest microcode on Intel web site
- Fix double size/content microcode bug (bsc#1075680)
- Add an overview of provided Intel processor microcodes for:
family, model, stepping and the revision in:
/usr/share/doc/packages/ucode-intel/microcode_revisions.txt
-------------------------------------------------------------------
Wed Jan 10 15:15:42 UTC 2018 - trenn@suse.de

View File

@ -24,7 +24,7 @@ License: SUSE-Firmware
Group: Hardware/Other
BuildRequires: suse-module-tools
#License is: Intel Software License Agreement
Url: https://downloadcenter.intel.com/download/25512/Linux-Processor-Microcode-Data-File
Url: https://downloadcenter.intel.com/download/27431/Linux-Processor-Microcode-Data-File
Source0: microcode-%{version}.tgz
Source1: intel-microcode2ucode.c
Source2: LICENSE
@ -43,7 +43,17 @@ cp %{SOURCE2} .
%build
%{__cc} -fwhole-program %{optflags} %{SOURCE1} -o generate_microcode
./generate_microcode microcode.dat
# Microcodes are already splitted up in family-model-stepping files inside
# the tarball nowadays. Still generate them from microcode.dat once into
# tmp directory for retrieving revisions from output.
# Do not do this in the original directory or microcodes are appended and
# have duplicate content while still working.
OPWD=$PWD
TMP=$(mktemp -d)
cd $TMP
$OPWD/generate_microcode $OPWD/microcode.dat >$OPWD/microcode_revisions.txt
cd $OPWD
rm -rf $TMP
%install
install -D -m 0755 generate_microcode %{buildroot}%{_bindir}/generate_microcode
@ -63,6 +73,7 @@ done
%files
%defattr(-,root,root)
%doc LICENSE
%doc microcode_revisions.txt
%{_bindir}/generate_microcode
/lib/firmware/intel-ucode/