You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.3 KiB
46 lines
1.3 KiB
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/sys-apps/microcode-data/microcode-data-20140624.ebuild,v 1.1 2014/06/28 14:13:21 flameeyes Exp $
|
|
|
|
EAPI="4"
|
|
|
|
inherit toolchain-funcs
|
|
|
|
# Find updates by searching and clicking the first link (hopefully it's the one):
|
|
# http://www.intel.com/content/www/us/en/search.html?keyword=Processor+Microcode+Data+File
|
|
|
|
NUM="23984"
|
|
DESCRIPTION="Intel IA32 microcode update data"
|
|
HOMEPAGE="http://inertiawar.com/microcode/ https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=${NUM}"
|
|
SRC_URI="http://downloadmirror.intel.com/${NUM}/eng/microcode-${PV}.tgz"
|
|
|
|
LICENSE="intel-ucode"
|
|
SLOT="0"
|
|
KEYWORDS="-* ~amd64 ~x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="!<sys-apps/microcode-ctl-1.17-r2" #268586
|
|
|
|
S=${WORKDIR}
|
|
|
|
src_unpack() {
|
|
default
|
|
cp "${FILESDIR}"/intel-microcode2ucode.c ./ || die
|
|
}
|
|
|
|
src_compile() {
|
|
tc-env_build emake intel-microcode2ucode
|
|
./intel-microcode2ucode microcode.dat || die
|
|
}
|
|
|
|
src_install() {
|
|
insinto /lib/firmware
|
|
doins -r microcode.dat intel-ucode
|
|
}
|
|
|
|
pkg_postinst() {
|
|
elog "The microcode available for Intel CPUs has been updated. You'll need"
|
|
elog "to reload the code into your processor. If you're using the init.d:"
|
|
elog "/etc/init.d/microcode_ctl restart"
|
|
}
|