260 lines
8.1 KiB
RPMSpec
260 lines
8.1 KiB
RPMSpec
Summary: Tool to update x86/x86-64 CPU microcode.
|
|
Name: microcode_ctl
|
|
Version: 1.17
|
|
Release: 18%{?dist}
|
|
Epoch: 1
|
|
Group: System Environment/Base
|
|
License: GPLv2+ and Redistributable, no modification permitted
|
|
URL: http://www.urbanmyth.org/microcode/
|
|
Source0: http://www.urbanmyth.org/microcode/microcode_ctl-%{version}.tar.gz
|
|
Source1: microcode_ctl.rules
|
|
# Microcode now distributed directly by Intel, at
|
|
# http://downloadcenter.intel.com (just search for microcode)
|
|
Source2: microcode-20110428.dat
|
|
# http://www.amd64.org/support/microcode.html
|
|
Source3: amd-ucode-2011-01-11.tar
|
|
# Tool for splitting Intel's microcode file
|
|
Source4: intel-microcode2ucode.c
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
Requires: udev
|
|
Requires(pre): /sbin/chkconfig /sbin/service
|
|
Requires(pre): grep gawk coreutils
|
|
ExclusiveArch: %{ix86} x86_64
|
|
|
|
Patch1: microcode_ctl.patch
|
|
Patch2: microcode_ctl-manpage-0.patch
|
|
|
|
%description
|
|
microcode_ctl - updates the microcode on Intel and AMD x86/x86-64 CPU's
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
tar xf %{SOURCE3}
|
|
|
|
%build
|
|
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
|
gcc -Wall -o intel-microcode2ucode %{SOURCE4}
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}/usr/share/man/man{1,8}
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
|
mkdir -p %{buildroot}/lib/firmware/amd-ucode/
|
|
|
|
make DESTDIR=%{buildroot} PREFIX=%{_prefix} \
|
|
INSDIR=/sbin MANDIR=%{_mandir}/man8 RCDIR=%{_sysconfdir} install clean
|
|
|
|
rm -rf %{buildroot}/etc/*
|
|
|
|
mkdir -p %{buildroot}/lib/udev/rules.d
|
|
install -m 644 %{SOURCE1} %{buildroot}/lib/udev/rules.d/89-microcode.rules
|
|
|
|
install -m 644 amd-ucode-2011-01-11/microcode_amd.bin %{buildroot}/lib/firmware/amd-ucode/microcode_amd.bin
|
|
install -m 644 amd-ucode-2011-01-11/LICENSE LICENSE.microcode_amd
|
|
install -m 644 amd-ucode-2011-01-11/README README.microcode_amd
|
|
install -m 644 amd-ucode-2011-01-11/INSTALL INSTALL.microcode_amd
|
|
|
|
install -m 755 intel-microcode2ucode %{buildroot}/sbin
|
|
%{buildroot}/sbin/intel-microcode2ucode %{SOURCE2}
|
|
chmod 0755 intel-ucode
|
|
mv intel-ucode %{buildroot}/lib/firmware
|
|
rm %{buildroot}/lib/firmware/microcode.dat
|
|
|
|
chmod -R a-s %{buildroot}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
/lib/firmware/*
|
|
/lib/udev/rules.d/*
|
|
/sbin/microcode_ctl
|
|
/sbin/intel-microcode2ucode
|
|
%doc LICENSE.microcode_amd README.microcode_amd INSTALL.microcode_amd
|
|
%attr(0644,root,root) %{_mandir}/*/*
|
|
|
|
%triggerun -- microcode_ctl < 1:1.17-2
|
|
/sbin/chkconfig --del microcode_ctl
|
|
exit 0
|
|
|
|
|
|
%changelog
|
|
* Thu Aug 04 2011 Anton Arapov <anton@redhat.com> 1.17-18
|
|
- Ship splitted microcode for Intel CPUs [#690930]
|
|
- Include tool for splitting microcode for Intl CPUs (Kay Sievers )
|
|
|
|
* Thu Jun 30 2011 Anton Arapov <anton@redhat.com> 1.17-17
|
|
- Fix udev rules (Dave Jones ) [#690930]
|
|
|
|
* Thu May 12 2011 Anton Arapov <anton@redhat.com> 1.17-14
|
|
- Update to microcode-20110428.dat
|
|
|
|
* Thu Mar 24 2011 Anton Arapov <anton@redhat.com> 1.17-13
|
|
- fix memory leak.
|
|
|
|
* Mon Mar 07 2011 Anton Arapov <anton@redhat.com> 1.17-12
|
|
- Update to amd-ucode-2011-01-11.tar
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.17-11
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Wed Jan 19 2011 Anton Arapov <anton@redhat.com> 1.17-10
|
|
- manpage fix (John Bradshaw ) [#670879]
|
|
|
|
* Wed Jan 05 2011 Anton Arapov <anton@redhat.com> 1.17-9
|
|
- Update to microcode-20101123.dat
|
|
|
|
* Mon Nov 01 2010 Anton Arapov <anton@redhat.com> 1.17-8
|
|
- Update to microcode-20100914.dat
|
|
|
|
* Wed Sep 29 2010 jkeating - 1:1.17-7
|
|
- Rebuilt for gcc bug 634757
|
|
|
|
* Wed Sep 15 2010 Anton Arapov <anton@redhat.com> 1.17-6
|
|
- Update to microcode-20100826.dat
|
|
|
|
* Tue Sep 07 2010 Toshio Kuratomi <toshio@fedoraproject.org> 1.17-5
|
|
- Fix license tag: bz#450491
|
|
|
|
* Fri Aug 27 2010 Dave Jones <davej@redhat.com> 1.17-4
|
|
- Update to microcode-20100826.dat
|
|
|
|
* Tue Mar 23 2010 Anton Arapov <anton@redhat.com> 1.17-3
|
|
- Fix the udev rules (Harald Hoyer )
|
|
|
|
* Mon Mar 22 2010 Anton Arapov <anton@redhat.com> 1.17-2
|
|
- Make microcode_ctl event driven (Bill Nottingham ) [#479898]
|
|
|
|
* Thu Feb 11 2010 Dave Jones <davej@redhat.com> 1.17-1.58
|
|
- Update to microcode-20100209.dat
|
|
|
|
* Fri Dec 04 2009 Kyle McMartin <kyle@redhat.com> 1.17-1.57
|
|
- Fix duplicate message pointed out by Edward Sheldrake.
|
|
|
|
* Wed Dec 02 2009 Kyle McMartin <kyle@redhat.com> 1.17-1.56
|
|
- Add AMD x86/x86-64 microcode. (Dated: 2009-10-09)
|
|
Doesn't need microcode_ctl modifications as it's loaded by
|
|
request_firmware() like any other sensible driver.
|
|
- Eventually, this AMD firmware can probably live inside
|
|
kernel-firmware once it is split out.
|
|
|
|
* Wed Sep 30 2009 Dave Jones <davej@redhat.com>
|
|
- Update to microcode-20090927.dat
|
|
|
|
* Fri Sep 11 2009 Dave Jones <davej@redhat.com>
|
|
- Remove some unnecessary code from the init script.
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.17-1.52.1
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Thu Jun 25 2009 Dave Jones <davej@redhat.com>
|
|
- Shorten sleep time during init.
|
|
This really needs to be replaced with proper udev hooks, but this is
|
|
a quick interim fix.
|
|
|
|
* Wed Jun 03 2009 Kyle McMartin <kyle@redhat.com> 1:1.17-1.50
|
|
- Change ExclusiveArch to i586 instead of i386. Resolves rhbz#497711.
|
|
|
|
* Wed May 13 2009 Dave Jones <davej@redhat.com>
|
|
- update to microcode 20090330
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.17-1.46.1
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Fri Sep 12 2008 Dave Jones <davej@redhat.com>
|
|
- update to microcode 20080910
|
|
|
|
* Tue Apr 01 2008 Jarod Wilson <jwilson@redhat.com>
|
|
- Update to microcode 20080401
|
|
|
|
* Sat Mar 29 2008 Dave Jones <davej@redhat.com>
|
|
- Update to microcode 20080220
|
|
- Fix rpmlint warnings in specfile.
|
|
|
|
* Mon Mar 17 2008 Dave Jones <davej@redhat.com>
|
|
- specfile cleanups.
|
|
|
|
* Fri Feb 22 2008 Jarod Wilson <jwilson@redhat.com>
|
|
- Use /lib/firmware instead of /etc/firmware
|
|
|
|
* Wed Feb 13 2008 Jarod Wilson <jwilson@redhat.com>
|
|
- Fix permissions on microcode.dat
|
|
|
|
* Thu Feb 07 2008 Jarod Wilson <jwilson@redhat.com>
|
|
- Spec cleanup and macro standardization.
|
|
- Update license
|
|
- Update microcode data file to 20080131 revision.
|
|
|
|
* Mon Jul 2 2007 Dave Jones <davej@redhat.com>
|
|
- Update to upstream 1.17
|
|
|
|
* Thu Oct 12 2006 Jon Masters <jcm@redhat.com>
|
|
- BZ209455 fixes.
|
|
|
|
* Mon Jul 17 2006 Jesse Keating <jkeating@redhat.com>
|
|
- rebuild
|
|
|
|
* Fri Jun 16 2006 Bill Nottingham <notting@redhat.com>
|
|
- remove kudzu requirement
|
|
- add prereq for coreutils, awk, grep
|
|
|
|
* Thu Feb 09 2006 Dave Jones <davej@redhat.com>
|
|
- rebuild.
|
|
|
|
* Fri Jan 27 2006 Dave Jones <davej@redhat.com>
|
|
- Update to upstream 1.13
|
|
|
|
* Fri Dec 16 2005 Jesse Keating <jkeating@redhat.com>
|
|
- rebuilt for new gcj
|
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
|
|
- rebuilt
|
|
|
|
* Mon Nov 14 2005 Dave Jones <davej@redhat.com>
|
|
- initscript tweaks.
|
|
|
|
* Tue Sep 13 2005 Dave Jones <davej@redhat.com>
|
|
- Update to upstream 1.12
|
|
|
|
* Wed Aug 17 2005 Dave Jones <davej@redhat.com>
|
|
- Check for device node *after* loading the module. (#157672)
|
|
|
|
* Tue Mar 1 2005 Dave Jones <davej@redhat.com>
|
|
- Rebuild for gcc4
|
|
|
|
* Thu Feb 17 2005 Dave Jones <davej@redhat.com>
|
|
- s/Serial/Epoch/
|
|
|
|
* Tue Jan 25 2005 Dave Jones <davej@redhat.com>
|
|
- Drop the node creation/deletion change from previous release.
|
|
It'll cause grief with selinux, and was a hack to get around
|
|
a udev shortcoming that should be fixed properly.
|
|
|
|
* Fri Jan 21 2005 Dave Jones <davej@redhat.com>
|
|
- Create/remove the /dev/cpu/microcode dev node as needed.
|
|
- Use correct path again for the microcode.dat.
|
|
- Remove some no longer needed tests in the init script.
|
|
|
|
* Fri Jan 14 2005 Dave Jones <davej@redhat.com>
|
|
- Only enable microcode_ctl service if the CPU is capable.
|
|
- Prevent microcode_ctl getting restarted multiple times on initlevel change (#141581)
|
|
- Make restart/reload work properly
|
|
- Do nothing if not started by root.
|
|
|
|
* Wed Jan 12 2005 Dave Jones <davej@redhat.com>
|
|
- Adjust dev node location. (#144963)
|
|
|
|
* Tue Jan 11 2005 Dave Jones <davej@redhat.com>
|
|
- Load/Remove microcode module in initscript.
|
|
|
|
* Mon Jan 10 2005 Dave Jones <davej@redhat.com>
|
|
- Update to upstream 1.11 release.
|
|
|
|
* Sat Dec 18 2004 Dave Jones <davej@redhat.com>
|
|
- Initial packaging, based upon kernel-utils.
|
|
|