# 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="27337" 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" SRC_URI="mirror://gentoo/microcode-${PV}.tgz https://dev.gentoo.org/~whissi/dist/${PN}/microcode-${PV}.tgz" LICENSE="intel-ucode" SLOT="0" KEYWORDS="-* amd64 x86" IUSE="initramfs scan-system +split-ucode" REQUIRED_USE="|| ( initramfs split-ucode )" DEPEND="initramfs? ( sys-apps/iucode_tool ) scan-system? ( sys-apps/iucode_tool )" RDEPEND="!&1) # signature is written to stderr elog "" # Suitable bundles identified? if (( ${#suitable[@]} == 0 )); then ewarn "Unable to identify suitable microcode bundle(s)" ewarn "Please install without USE flag 'scan-system' instead" die "Failed to identify suitable microcode bundle(s)" fi # Install identified bundles insinto /lib/firmware/intel-ucode for index in ${suitable[@]}; do doins "${bundles[$index]}" done else doins intel-ucode/* fi fi } pkg_postinst() { if use initramfs; then elog "CPIO archive was installed to '/lib/firmware/intel-ucode/initramfs.cpio'" elog "This archive needs to be prepended to an existing initramfs image:" elog "# cat /lib/firmware/intel-ucode/initramfs.cpio existing-image > combined-image" elog "" fi if use split-ucode; then elog "Split binary ucode files were installed to '/lib/firmware/intel-ucode'" elog "" fi elog "Please refer to the Gentoo Wiki for more detailed information:" elog "https://wiki.gentoo.org/wiki/Intel_microcode" }