/[gentoo-x86]/sys-apps/microcode-data/microcode-data-20110915-r1.ebuild
Gentoo

Contents of /sys-apps/microcode-data/microcode-data-20110915-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Dec 12 21:34:38 2011 UTC (2 years, 7 months ago) by vapier
Branch: MAIN
Split up microcode files for the kernel to autoload (using util from Fedora).

(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode-data/microcode-data-20110915.ebuild,v 1.1 2011/09/22 20:26:48 flameeyes Exp $
4
5 EAPI=4
6
7 inherit toolchain-funcs
8
9 NUM="20429"
10 DESCRIPTION="Intel IA32 microcode update data"
11 HOMEPAGE="http://urbanmyth.org/microcode/"
12 SRC_URI="http://downloadmirror.intel.com/${NUM}/eng/microcode-${PV}.tgz"
13
14 LICENSE="intel-ucode"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE=""
18
19 RDEPEND="!<sys-apps/microcode-ctl-1.17-r2" #268586
20
21 S=${WORKDIR}
22
23 src_unpack() {
24 unpack ${A}
25 cp "${FILESDIR}"/intel-microcode2ucode.c ./ || die
26 }
27
28 src_compile() {
29 tc-env_build emake intel-microcode2ucode
30 ./intel-microcode2ucode microcode.dat || die
31 }
32
33 src_install() {
34 insinto /lib/firmware
35 doins -r microcode.dat intel-ucode
36 }
37
38 pkg_postinst() {
39 elog "The microcode available for Intel CPUs has been updated. You'll need"
40 elog "to reload the code into your processor. If you're using the init.d:"
41 elog "/etc/init.d/microcode_ctl restart"
42 }

  ViewVC Help
Powered by ViewVC 1.1.20