summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2018-01-10 01:45:32 +0100
committerThomas Deutschmann <whissi@gentoo.org>2018-01-10 01:45:32 +0100
commit03040571481e27e7176bf21dcc072bde7e24918f (patch)
treedfdde9b19ea79bcbcfe90ee626d39a7311c38671 /sys-firmware/intel-microcode/intel-microcode-20180108.ebuild
parentdev-perl/Sys-SigAction: Bump to version 0.230.0 (diff)
downloadgentoo-03040571481e27e7176bf21dcc072bde7e24918f.tar.gz
gentoo-03040571481e27e7176bf21dcc072bde7e24918f.tar.bz2
gentoo-03040571481e27e7176bf21dcc072bde7e24918f.zip
sys-firmware/intel-microcode: Bump to v20180108
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'sys-firmware/intel-microcode/intel-microcode-20180108.ebuild')
-rw-r--r--sys-firmware/intel-microcode/intel-microcode-20180108.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/sys-firmware/intel-microcode/intel-microcode-20180108.ebuild b/sys-firmware/intel-microcode/intel-microcode-20180108.ebuild
new file mode 100644
index 000000000000..968efe5324a1
--- /dev/null
+++ b/sys-firmware/intel-microcode/intel-microcode-20180108.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+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="27431"
+DESCRIPTION="Intel IA32/IA64 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="initramfs monolithic +split-ucode"
+REQUIRED_USE="|| ( initramfs monolithic split-ucode )"
+
+DEPEND="initramfs? ( sys-apps/iucode_tool )"
+RDEPEND="!<sys-apps/microcode-ctl-1.17-r2" #268586
+
+S=${WORKDIR}
+
+src_unpack() {
+ default
+ cp "${FILESDIR}"/intel-microcode2ucode.c-r1 ./intel-microcode2ucode.c || die
+}
+
+src_compile() {
+ if use initramfs ; then
+ iucode_tool --write-earlyfw=microcode.cpio microcode.dat || die
+ fi
+
+ if use split-ucode ; then
+ tc-env_build emake intel-microcode2ucode
+ ./intel-microcode2ucode microcode.dat || die
+ fi
+}
+
+src_install() {
+ insinto /lib/firmware
+ use initramfs && doins microcode.cpio
+ use monolithic && doins microcode.dat
+ use split-ucode && doins -r intel-ucode
+}