commit: 940061eca24be9ba3e2f24d3a7b9091ead10eba4 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> AuthorDate: Sat Jun 23 11:45:47 2018 +0000 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> CommitDate: Sat Jun 23 11:46:27 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=940061ec
sys-firmware/intel-microcode: drop old Package-Manager: Portage-2.3.40, Repoman-2.3.9 profiles/package.mask | 9 - sys-firmware/intel-microcode/Manifest | 16 -- .../intel-microcode/files/intel-microcode2ucode.c | 163 ---------------- .../files/intel-microcode2ucode.c-r1 | 166 ---------------- .../intel-microcode-20140430.ebuild | 44 ----- .../intel-microcode-20140624.ebuild | 44 ----- .../intel-microcode-20140913.ebuild | 44 ----- .../intel-microcode-20150121-r1.ebuild | 48 ----- .../intel-microcode-20150121.ebuild | 44 ----- .../intel-microcode-20151106.ebuild | 48 ----- .../intel-microcode-20160607.ebuild | 48 ----- .../intel-microcode-20160714.ebuild | 48 ----- .../intel-microcode-20161104.ebuild | 48 ----- .../intel-microcode-20170511.ebuild | 48 ----- .../intel-microcode-20170707.ebuild | 48 ----- .../intel-microcode-20171117-r1.ebuild | 95 --------- .../intel-microcode-20171117.ebuild | 48 ----- .../intel-microcode-20171117_p20171215-r1.ebuild | 39 ---- .../intel-microcode-20171117_p20171215.ebuild | 39 ---- .../intel-microcode-20180108-r1.ebuild | 95 --------- .../intel-microcode-20180108.ebuild | 48 ----- .../intel-microcode-20180312.ebuild | 95 --------- .../intel-microcode-20180527-r1.ebuild | 212 --------------------- sys-firmware/intel-microcode/metadata.xml | 1 - 24 files changed, 1538 deletions(-) diff --git a/profiles/package.mask b/profiles/package.mask index 8ecb892f3a0..f46c074586b 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -493,15 +493,6 @@ sys-libs/uclibc # Mask experimental software =mail-mta/postfix-3.4* -# Thomas Deutschmann <whi...@gentoo.org> (07 Feb 2018) -# Intel recommends to pull these versions because they could -# cause higher than expected reboots and other unpredictable -# system behavior. Bug #646646 -=sys-firmware/intel-microcode-20171117_p20171215 -=sys-firmware/intel-microcode-20171117_p20171215-r1 -=sys-firmware/intel-microcode-20180108 -=sys-firmware/intel-microcode-20180108-r1 - # Eray Aslan <e...@gentoo.org> (22 Jan 2018) # Vulnerable - see https://bugs.gentoo.org/630684 # Please migrate to cyrus-imapd-3.0 releases diff --git a/sys-firmware/intel-microcode/Manifest b/sys-firmware/intel-microcode/Manifest index daaca6ae13f..78f1666053d 100644 --- a/sys-firmware/intel-microcode/Manifest +++ b/sys-firmware/intel-microcode/Manifest @@ -1,18 +1,2 @@ -DIST intel-microcode-collection-20180527.tar.xz 4315096 BLAKE2B 2ab4fe3d8469d98bc890e7f1347e4da442d814e945253e2c400a0ba954925f6c622d259711a9ce89a2d013365c65b002e24e182afc5c53ebd4e14828b2f5631e SHA512 45e46905156a0b4d8b272760d84030651a034feaf2afbc564f99fff89303457c0d7d694f174de5abed666d5107f2f7db93c04acd3cc36a77b1cf1a0495584b1c DIST intel-microcode-collection-20180616.tar.xz 4413444 BLAKE2B 4ba5371914f64c8a7261720512dff128f83cc25950a4bdf8d41e9eeb724c6d3150212b1a7f2ee966a2b9c835a2622ac885625fada497ec2bc0aa3c435a2968e8 SHA512 5c0cd4e764397f8c2593153256d573db8f57cce1fc062f5e687a108e5a430c7ed506f63d0d324ea2b88cc8bf8762d3fec507252ee9890c55bb9d3b5604151afe -DIST microcode-20140430.tgz 785594 BLAKE2B e51a187ca99ad496804f117871b50693b03b50759c9dd23002149ff7fa4b74888c83e8e1fcf078a973dea82e6a9439de8415c56c902ed0163e55ceaaff0eaf23 SHA512 12954522629ce15c4b95c158b6288b3877a3d1f87bea838f8138e53987ef1b6c0edc7a8cbb802a981ccca178b70b4323907aafa7479c0c2fed4497f6fb7bbc1c -DIST microcode-20140624.tgz 787237 BLAKE2B 1c2d8f39bf142570283e80f370f41c502ef04d24b4348ca4b44c881e3b1e54df72a88e09350d45a33d47d9955d84a80ae8a11e44561b1a8944a59f9326d4d81a SHA512 c774006aae639e7fae90bc1f5d8308b407e7cd3b7d0da6e35577560bf6201c2b15f7d7b6b0cd727c50be1e9d508b484b067856631fa2598498982109bff0e44c -DIST microcode-20140913.tgz 830537 BLAKE2B 665c72fc3a3e1e13d9e58eba0ed202b30856532eee590006c02112df926b879985a97ba9a96b58a6aad0285bff95a3fbb27b22d533f958fe170887f0ab37eef1 SHA512 e179fe0001b1157cc95aee39185f51fd182d53c1bdb30bfc95bc3a70795c32012050f3a4adf06735a77d8ef9c703a330c6a2610b73b70f09f5760e31d39cb89c -DIST microcode-20150121.tgz 850761 BLAKE2B d5859b98de645ed255ac4244640979b4c197a1d1d9c2b562c052405f487ccd0f0e570c5054cd55870b4eb4d51237b9c2627547e30b7245174f887605cf049b1b SHA512 f62edd1b666cf381605613766d7e123f0c6debee4448c0ff0882d33c144ad2174656d2501a449f24eb3e4708259e7ec0ff42810739b7d1f34a6a1d9950d17bc4 -DIST microcode-20151106.tgz 892805 BLAKE2B e384a445ea645510dbef1e564963509893ec5beefe90f04490aa7d1b91fd036ae928bbb7a68e291b1633e2d671ce8995518967fffddcc3edc336bc06c3f60251 SHA512 606ce97f0fe76f6a34a857923d3432d8e2368e8a5c504ffa0313f9f016d61b0a5dea26e67662ce1283c1f772ace7318e96a34ebeeeff50b25deb3005ccc6978e -DIST microcode-20160607.tgz 1236385 BLAKE2B 477b8c8df915d8800f1d5836f2882ba63b152d5e67f6c7eecb71539176d77454b2482fe10308fc3b352a03563582f9626296a3eae48496351b54e81435d4e09b SHA512 17f62ebf3e9f262d21ffa00546da4d711a9a810ad0a9bf4b2805c33090d75e9a07df1f3449baf6009ec5ef1f9af470fd32285b6100f0819e0b9989f5c55dc5bd -DIST microcode-20160714.tgz 1239344 BLAKE2B 9af6d4d7db21d7316a4e331c5e70a81b9a5d0d95c3476b56d2281a2c7e652e800bcdcec9ad8857563abf378512ecf48c06b3112604fe2602d50b71558d608428 SHA512 f9e09b6669a86aafcc77642d6e33acf9326109c3a2bc3e0d62b45a062b9ecbde6605b5a0ae31d4a3ad2b0ed3c6d3aadbd18088431fb72216bfc31fc452b0e342 -DIST microcode-20161104.tgz 1290125 BLAKE2B 9274bebe3f9104f0afc6378ae40810b2a634c85e5d26f8250666a45c6dd0d75e35d051e8702a6ca26c70d8cdfea0144614bca9c5568294817ea8f522e474b8a3 SHA512 73a7310c1da5bec7ce82bce5cf7c2aafa3d0189e7524bdebd20e1ea3568cf8242be39d9041fa055fe06e759f98703c5d0a631e57ff185aae3ba3c91dbe83cf7a -DIST microcode-20170511.tgz 2143617 BLAKE2B a2185b44cfca9832d2a80f12a189c49365ed323692b8fd94e99a0f4e8d3f0102a21cfce806ad9e53f172c3ae038f4ffafbafc8421bea6668bfbfdd1262bbd8e9 SHA512 4e2066096d56430c2df73631f15cf16f2317c1d8ff745d7b7cdd784ebccc2b797565eb52703cce9b4238774dbfdcaecacd892d729b7869fdfd7644008ce74a60 -DIST microcode-20170707.tgz 2908882 BLAKE2B 545d94ee9292d1ba730932f11660d0e0378b4a6f2a5232cdcc26333a8d707ec13b040d41617fb28c17e4b81f1df5bc4180f1979925d2fa5198f2edfb3623967c SHA512 2f0643c332318e9c818b9a23a996b59086e86e80e649589e43dbab19f13083d6d9505b8557f67b45ce56de0da043c753a14bb146e597b6669f24fe543656c65f -DIST microcode-20171117.tgz 3594762 BLAKE2B 7a02c28ec6b9b22a367f8fd7d59f244d0195fef3b256fa2542bca734026e869fdefc7b368a230e94ac0554473d18d1b80aa00511ad4ab6580279f512a106c17d SHA512 b1f09dd7bb04c00e456e34bf42bf786c780aba6d2ef3231a45769216a093876e9bb15123c82ddb7d8ef5426fe10b946509f363770af3b4eba16ba76043a064b4 -DIST microcode-20171117_p20171215-r1.tgz 1477015 BLAKE2B 3911aed3bbbd350be69a99bc855cdec6e8dc2a77f64c4d3a6c1aa24455d5c97eb1c03917eddb4cac2018f6da20a1751cc819a5f27f866f64fc56c7279b5ca40f SHA512 05466e16f9778a3ab148fa5485cd605bca7990067040aa9133ec4c3c1b007519cb260fe8811b44df1192ca0e84237f00d7afccfa11103f3dd4a99c08c692ecb0 -DIST microcode-20171117_p20171215.tgz 1468587 BLAKE2B 58777a39f843ae880f7dd8971a9570dbfc176d69541bb9d3cdc948d7be71a7df2559265fb1c8a199bc7567bb5a60176ade1d2c36624d0193dbac98d82401d0dd SHA512 25db94dbf18b1fea9497ec1e61bb5349d7bc78b0578d8869546bc3ec579b96bee7cd62657e66ebd3d4616805e85d790ac7ee7c0fed70b5db30236ffd12b33293 -DIST microcode-20180108.tgz 3676678 BLAKE2B 197e0188e516a3071be9e2e7a6261d78208613db8b746c7df533ce37884197dbd06a4e6ab027cbddba38903f590130f2d974e46da8fbab0613561523653460ab SHA512 f4010d83353948df27beeb804ef11e4f019f63397a4936f9d139e2842f7944d1ae864b9376987eaffc7db5b97201d5de2f4c1d7cc6b0f545ae15ec53a61fce2b -DIST microcode-20180312.tgz 3789662 BLAKE2B e948d74833fe75b9bbdff1e4676f5d49a13bdd06aa6525c39be3448b822203947a5f55515484401ee0c96e8ade19ea580718949bed65883d983509661a16e637 SHA512 cc2cabf6d12c83b65eeb30fca7eb0b503e037dbee3d7ce9cb307b02ed8ac9426b2bafc2c1f1281dddff0945f8308f0d3cd320edea4596551354188d64760b854 DIST microcode-20180425.tgz 1565473 BLAKE2B 70e0a56f0f5f720e00ab18d6553bc221147589e83df34fdc0c130c6f74a239e48355bfe1845b1de919ed1bce9ade7b7db298883eb3de1d53732a694b15d76f62 SHA512 6cea53cc0f486891fb9ddffc1e03e8e0a6d1d91df6bfda81250b2c60714e7b4111caa9df5afa7f13d8144e591550ef7eb4fd1e153fc67fc904afb83ccc2e3bb0 diff --git a/sys-firmware/intel-microcode/files/intel-microcode2ucode.c b/sys-firmware/intel-microcode/files/intel-microcode2ucode.c deleted file mode 100644 index caad0323e80..00000000000 --- a/sys-firmware/intel-microcode/files/intel-microcode2ucode.c +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Convert Intel microcode.dat into individual ucode files - * named: intel-ucode/$family-$model-$stepping - * - * The subdir intel-ucode/ is created in the current working - * directory. We get multiple ucodes in the same file, so they - * are appended to an existing file. Make sure the directory - * is empty before every run of the converter. - * - * Kay Sievers <kay.siev...@vrfy.org> - */ - - -#ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 -#endif - -#include <stdio.h> -#include <unistd.h> -#include <stdlib.h> -#include <string.h> -#include <time.h> -#include <limits.h> -#include <stdbool.h> -#include <inttypes.h> -#include <fcntl.h> -#include <errno.h> -#include <sys/stat.h> - -struct microcode_header_intel { - unsigned int hdrver; - unsigned int rev; - unsigned int date; - unsigned int sig; - unsigned int cksum; - unsigned int ldrver; - unsigned int pf; - unsigned int datasize; - unsigned int totalsize; - unsigned int reserved[3]; -}; - -union mcbuf { - struct microcode_header_intel hdr; - unsigned int i[0]; - char c[0]; -}; - -int main(int argc, char *argv[]) -{ - char *filename = "/lib/firmware/microcode.dat"; - FILE *f; - char line[LINE_MAX]; - char buf[4000000]; - union mcbuf *mc; - size_t bufsize, count, start; - int rc = EXIT_SUCCESS; - - if (argv[1] != NULL) - filename = argv[1]; - - count = 0; - mc = (union mcbuf *) buf; - f = fopen(filename, "re"); - if (f == NULL) { - printf("open %s: %m\n", filename); - rc = EXIT_FAILURE; - goto out; - } - - while (fgets(line, sizeof(line), f) != NULL) { - if (sscanf(line, "%x, %x, %x, %x", - &mc->i[count], - &mc->i[count + 1], - &mc->i[count + 2], - &mc->i[count + 3]) != 4) - continue; - count += 4; - } - fclose(f); - - bufsize = count * sizeof(int); - printf("%s: %lu(%luk) bytes, %zu integers\n", - filename, - bufsize, - bufsize / 1024, - count); - - if (bufsize < sizeof(struct microcode_header_intel)) - goto out; - - mkdir("intel-ucode", 0750); - - start = 0; - for (;;) { - size_t size; - unsigned int family, model, stepping; - unsigned int year, month, day; - - mc = (union mcbuf *) &buf[start]; - - if (mc->hdr.totalsize) - size = mc->hdr.totalsize; - else - size = 2000 + sizeof(struct microcode_header_intel); - - if (mc->hdr.ldrver != 1 || mc->hdr.hdrver != 1) { - printf("unknown version/format:\n"); - rc = EXIT_FAILURE; - break; - } - - /* - * 0- 3 stepping - * 4- 7 model - * 8-11 family - * 12-13 type - * 16-19 extended model - * 20-27 extended family - */ - family = (mc->hdr.sig >> 8) & 0xf; - if (family == 0xf) - family += (mc->hdr.sig >> 20) & 0xff; - model = (mc->hdr.sig >> 4) & 0x0f; - if (family == 0x06) - model += ((mc->hdr.sig >> 16) & 0x0f) << 4; - stepping = mc->hdr.sig & 0x0f; - - year = mc->hdr.date & 0xffff; - month = mc->hdr.date >> 24; - day = (mc->hdr.date >> 16) & 0xff; - - asprintf(&filename, "intel-ucode/%02x-%02x-%02x", family, model, stepping); - printf("\n"); - printf("%s\n", filename); - printf("signature: 0x%02x\n", mc->hdr.sig); - printf("flags: 0x%02x\n", mc->hdr.pf); - printf("revision: 0x%02x\n", mc->hdr.rev); - printf("date: %04x-%02x-%02x\n", year, month, day); - printf("size: %zu\n", size); - - f = fopen(filename, "ae"); - if (f == NULL) { - printf("open %s: %m\n", filename); - rc = EXIT_FAILURE; - goto out; - } - if (fwrite(mc, size, 1, f) != 1) { - printf("write %s: %m\n", filename); - rc = EXIT_FAILURE; - goto out; - } - fclose(f); - free(filename); - - start += size; - if (start >= bufsize) - break; - } - printf("\n"); -out: - return rc; -} diff --git a/sys-firmware/intel-microcode/files/intel-microcode2ucode.c-r1 b/sys-firmware/intel-microcode/files/intel-microcode2ucode.c-r1 deleted file mode 100644 index 4b3ba4b48ed..00000000000 --- a/sys-firmware/intel-microcode/files/intel-microcode2ucode.c-r1 +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Convert Intel microcode.dat into individual ucode files - * named: intel-ucode/$family-$model-$stepping - * - * The subdir intel-ucode/ is created in the current working - * directory. We get multiple ucodes in the same file, so they - * are appended to an existing file. Make sure the directory - * is empty before every run of the converter. - * - * Kay Sievers <kay.siev...@vrfy.org> - */ - - -#ifndef _GNU_SOURCE -# define _GNU_SOURCE 1 -#endif - -#include <stdio.h> -#include <unistd.h> -#include <stdlib.h> -#include <string.h> -#include <time.h> -#include <limits.h> -#include <stdbool.h> -#include <inttypes.h> -#include <fcntl.h> -#include <errno.h> -#include <sys/stat.h> - -struct microcode_header_intel { - unsigned int hdrver; - unsigned int rev; - unsigned int date; - unsigned int sig; - unsigned int cksum; - unsigned int ldrver; - unsigned int pf; - unsigned int datasize; - unsigned int totalsize; - unsigned int reserved[3]; -}; - -union mcbuf { - struct microcode_header_intel hdr; - unsigned int i[0]; - char c[0]; -}; - -int main(int argc, char *argv[]) -{ - char *filename = "/lib/firmware/microcode.dat"; - FILE *f; - char line[LINE_MAX]; - char buf[4000000]; - union mcbuf *mc; - size_t bufsize, count, start; - int rc = EXIT_SUCCESS; - - if (argv[1] != NULL) - filename = argv[1]; - - count = 0; - mc = (union mcbuf *) buf; - f = fopen(filename, "re"); - if (f == NULL) { - printf("open %s: %m\n", filename); - rc = EXIT_FAILURE; - goto out; - } - - while (fgets(line, sizeof(line), f) != NULL) { - if (sscanf(line, "%x, %x, %x, %x", - &mc->i[count], - &mc->i[count + 1], - &mc->i[count + 2], - &mc->i[count + 3]) != 4) - continue; - count += 4; - } - fclose(f); - - bufsize = count * sizeof(int); - printf("%s: %lu(%luk) bytes, %zu integers\n", - filename, - bufsize, - bufsize / 1024, - count); - - if (bufsize < sizeof(struct microcode_header_intel)) - goto out; - - mkdir("intel-ucode", 0750); - - start = 0; - for (;;) { - size_t size; - unsigned int family, model, stepping; - unsigned int year, month, day; - - mc = (union mcbuf *) &buf[start]; - - if (mc->hdr.totalsize) - size = mc->hdr.totalsize; - else - size = 2000 + sizeof(struct microcode_header_intel); - - if (mc->hdr.ldrver != 1 || mc->hdr.hdrver != 1) { - printf("unknown version/format:\n"); - rc = EXIT_FAILURE; - break; - } - - /* - * 0- 3 stepping - * 4- 7 model - * 8-11 family - * 12-13 type - * 16-19 extended model - * 20-27 extended family - */ - family = (mc->hdr.sig >> 8) & 0xf; - if (family == 0xf) - family += (mc->hdr.sig >> 20) & 0xff; - model = (mc->hdr.sig >> 4) & 0x0f; - if (family == 0x06) - model += ((mc->hdr.sig >> 16) & 0x0f) << 4; - stepping = mc->hdr.sig & 0x0f; - - year = mc->hdr.date & 0xffff; - month = mc->hdr.date >> 24; - day = (mc->hdr.date >> 16) & 0xff; - - if (asprintf(&filename, "intel-ucode/%02x-%02x-%02x", family, model, stepping) < 0) { - rc = EXIT_FAILURE; - goto out; - } - printf("\n"); - printf("%s\n", filename); - printf("signature: 0x%02x\n", mc->hdr.sig); - printf("flags: 0x%02x\n", mc->hdr.pf); - printf("revision: 0x%02x\n", mc->hdr.rev); - printf("date: %04x-%02x-%02x\n", year, month, day); - printf("size: %zu\n", size); - - f = fopen(filename, "ae"); - if (f == NULL) { - printf("open %s: %m\n", filename); - rc = EXIT_FAILURE; - goto out; - } - if (fwrite(mc, size, 1, f) != 1) { - printf("write %s: %m\n", filename); - rc = EXIT_FAILURE; - goto out; - } - fclose(f); - free(filename); - - start += size; - if (start >= bufsize) - break; - } - printf("\n"); -out: - return rc; -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20140430.ebuild b/sys-firmware/intel-microcode/intel-microcode-20140430.ebuild deleted file mode 100644 index 4cfb5a96974..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20140430.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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="23829" -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" -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20140624.ebuild b/sys-firmware/intel-microcode/intel-microcode-20140624.ebuild deleted file mode 100644 index 9f69a6c0b6d..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20140624.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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" -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20140913.ebuild b/sys-firmware/intel-microcode/intel-microcode-20140913.ebuild deleted file mode 100644 index 648c274af8d..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20140913.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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="24290" -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" -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20150121-r1.ebuild b/sys-firmware/intel-microcode/intel-microcode-20150121-r1.ebuild deleted file mode 100644 index ea34c125411..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20150121-r1.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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="24661" -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="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 ./ || 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 -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20150121.ebuild b/sys-firmware/intel-microcode/intel-microcode-20150121.ebuild deleted file mode 100644 index 46c67d4d05e..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20150121.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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="24661" -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" -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20151106.ebuild b/sys-firmware/intel-microcode/intel-microcode-20151106.ebuild deleted file mode 100644 index b852df2c4f0..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20151106.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -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="25512" -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="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 ./ || 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 -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20160607.ebuild b/sys-firmware/intel-microcode/intel-microcode-20160607.ebuild deleted file mode 100644 index 98ccc671d01..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20160607.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -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="26083" -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 ./ || 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 -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20160714.ebuild b/sys-firmware/intel-microcode/intel-microcode-20160714.ebuild deleted file mode 100644 index 7630a2dd1d7..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20160714.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2016 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="26156" -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 ./ || 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 -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20161104.ebuild b/sys-firmware/intel-microcode/intel-microcode-20161104.ebuild deleted file mode 100644 index 6e0c51a6f19..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20161104.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2017 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="26400" -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 ./ || 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 -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20170511.ebuild b/sys-firmware/intel-microcode/intel-microcode-20170511.ebuild deleted file mode 100644 index 20126a02fad..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20170511.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2017 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="26798" -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 ./ || 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 -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20170707.ebuild b/sys-firmware/intel-microcode/intel-microcode-20170707.ebuild deleted file mode 100644 index 386a152c3e2..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20170707.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2017 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="26925" -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 -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20171117-r1.ebuild b/sys-firmware/intel-microcode/intel-microcode-20171117-r1.ebuild deleted file mode 100644 index 368cbee79e5..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20171117-r1.ebuild +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit toolchain-funcs mount-boot - -# 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" - -LICENSE="intel-ucode" -SLOT="0" -KEYWORDS="-* amd64 x86" -IUSE="initramfs +split-ucode" -REQUIRED_USE="|| ( initramfs split-ucode )" - -DEPEND="sys-apps/iucode_tool" -RDEPEND="!<sys-apps/microcode-ctl-1.17-r2" #268586 - -S=${WORKDIR} - -# TODO: -# Blacklist bad microcode here. -DEFAULT_MICROCODE_SIGNATURES="" - -# Advanced users only: -# merge with: -# only current CPU: MICROCODE_SIGNATURES="-S" -# only specific CPU: MICROCODE_SIGNATURES="-s 0x00000f4a -s 0x00010676" -# exclude specific CPU: MICROCODE_SIGNATURES="-s !0x00000686" -MICROCODE_SIGNATURES="${MICROCODE_SIGNATURES:=${DEFAULT_MICROCODE_SIGNATURES}}" - -pkg_pretend() { - if [[ "${MICROCODE_SIGNATURES}" != "${DEFAULT_MICROCODE_SIGNATURES}" ]]; then - ewarn "MICROCODE_SIGNATURES is set!" - ewarn "The user has decided to install only a SUBSET of microcode." - fi - use initramfs && mount-boot_pkg_pretend -} - -src_install() { - # This will take ALL of the upstream microcode sources: - # - microcode.dat - # - intel-ucode/ - # In some cases, they have not contained the same content (eg the directory has newer stuff). - MICROCODE_SRC=( - "${S}"/microcode.dat - "${S}"/intel-ucode/ - ) - opts=( - ${MICROCODE_SIGNATURES} - # be strict about what we are doing - --overwrite - --strict-checks - --no-ignore-broken - # show everything we find - --list-all - # show what we selected - --list - ) - - # The earlyfw cpio needs to be in /boot because it must be loaded before - # rootfs is mounted. - use initramfs && dodir /boot && opts+=( --write-earlyfw="${ED%/}"/boot/intel-uc.img ) - # split location: - use split-ucode && dodir /lib/firmware/intel-ucode && opts+=( --write-firmware="${ED%/}"/lib/firmware/intel-ucode ) - - iucode_tool \ - "${opts[@]}" \ - "${MICROCODE_SRC[@]}" \ - || die "iucode_tool ${opts[@]} ${MICROCODE_SRC[@]}" - - dodoc releasenote -} - -pkg_preinst() { - use initramfs && mount-boot_pkg_preinst -} - -pkg_prerm() { - use initramfs && mount-boot_pkg_prerm -} - -pkg_postrm() { - use initramfs && mount-boot_pkg_postrm -} - -pkg_postinst() { - use initramfs && mount-boot_pkg_postinst -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20171117.ebuild b/sys-firmware/intel-microcode/intel-microcode-20171117.ebuild deleted file mode 100644 index 6e1904bba7f..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20171117.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2017 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" - -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 -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20171117_p20171215-r1.ebuild b/sys-firmware/intel-microcode/intel-microcode-20171117_p20171215-r1.ebuild deleted file mode 100644 index dd7ca58108a..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20171117_p20171215-r1.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# 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}-r1.tgz - https://dev.gentoo.org/~whissi/dist/${PN}/microcode-${PV}-r1.tgz" - -LICENSE="intel-ucode" -SLOT="0" -KEYWORDS="-* amd64 x86" -IUSE="initramfs +split-ucode" -REQUIRED_USE="|| ( initramfs split-ucode )" - -DEPEND="initramfs? ( sys-apps/iucode_tool )" -RDEPEND="!<sys-apps/microcode-ctl-1.17-r2" #268586 - -S=${WORKDIR} - -src_compile() { - if use initramfs ; then - iucode_tool --write-earlyfw=microcode.cpio intel-ucode/ || die - fi -} - -src_install() { - insinto /lib/firmware - use initramfs && doins microcode.cpio - use split-ucode && doins -r intel-ucode -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20171117_p20171215.ebuild b/sys-firmware/intel-microcode/intel-microcode-20171117_p20171215.ebuild deleted file mode 100644 index d6f30214012..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20171117_p20171215.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# 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 +split-ucode" -REQUIRED_USE="|| ( initramfs split-ucode )" - -DEPEND="initramfs? ( sys-apps/iucode_tool )" -RDEPEND="!<sys-apps/microcode-ctl-1.17-r2" #268586 - -S=${WORKDIR} - -src_compile() { - if use initramfs ; then - iucode_tool --write-earlyfw=microcode.cpio intel-ucode/ || die - fi -} - -src_install() { - insinto /lib/firmware - use initramfs && doins microcode.cpio - use split-ucode && doins -r intel-ucode -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20180108-r1.ebuild b/sys-firmware/intel-microcode/intel-microcode-20180108-r1.ebuild deleted file mode 100644 index 1d106fb3d7c..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20180108-r1.ebuild +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit toolchain-funcs mount-boot - -# 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 +split-ucode" -REQUIRED_USE="|| ( initramfs split-ucode )" - -DEPEND="sys-apps/iucode_tool" -RDEPEND="!<sys-apps/microcode-ctl-1.17-r2" #268586 - -S=${WORKDIR} - -# TODO: -# Blacklist bad microcode here. -DEFAULT_MICROCODE_SIGNATURES="" - -# Advanced users only: -# merge with: -# only current CPU: MICROCODE_SIGNATURES="-S" -# only specific CPU: MICROCODE_SIGNATURES="-s 0x00000f4a -s 0x00010676" -# exclude specific CPU: MICROCODE_SIGNATURES="-s !0x00000686" -MICROCODE_SIGNATURES="${MICROCODE_SIGNATURES:=${DEFAULT_MICROCODE_SIGNATURES}}" - -pkg_pretend() { - if [[ "${MICROCODE_SIGNATURES}" != "${DEFAULT_MICROCODE_SIGNATURES}" ]]; then - ewarn "MICROCODE_SIGNATURES is set!" - ewarn "The user has decided to install only a SUBSET of microcode." - fi - use initramfs && mount-boot_pkg_pretend -} - -src_install() { - # This will take ALL of the upstream microcode sources: - # - microcode.dat - # - intel-ucode/ - # In some cases, they have not contained the same content (eg the directory has newer stuff). - MICROCODE_SRC=( - "${S}"/microcode.dat - "${S}"/intel-ucode/ - ) - opts=( - ${MICROCODE_SIGNATURES} - # be strict about what we are doing - --overwrite - --strict-checks - --no-ignore-broken - # show everything we find - --list-all - # show what we selected - --list - ) - - # The earlyfw cpio needs to be in /boot because it must be loaded before - # rootfs is mounted. - use initramfs && dodir /boot && opts+=( --write-earlyfw="${ED%/}"/boot/intel-uc.img ) - # split location: - use split-ucode && dodir /lib/firmware/intel-ucode && opts+=( --write-firmware="${ED%/}"/lib/firmware/intel-ucode ) - - iucode_tool \ - "${opts[@]}" \ - "${MICROCODE_SRC[@]}" \ - || die "iucode_tool ${opts[@]} ${MICROCODE_SRC[@]}" - - dodoc releasenote -} - -pkg_preinst() { - use initramfs && mount-boot_pkg_preinst -} - -pkg_prerm() { - use initramfs && mount-boot_pkg_prerm -} - -pkg_postrm() { - use initramfs && mount-boot_pkg_postrm -} - -pkg_postinst() { - use initramfs && mount-boot_pkg_postinst -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20180108.ebuild b/sys-firmware/intel-microcode/intel-microcode-20180108.ebuild deleted file mode 100644 index ac2bcc44f59..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20180108.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# 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 -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20180312.ebuild b/sys-firmware/intel-microcode/intel-microcode-20180312.ebuild deleted file mode 100644 index a71b4d9fd8b..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20180312.ebuild +++ /dev/null @@ -1,95 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit toolchain-funcs mount-boot - -# 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="27591" -DESCRIPTION="Intel IA32/IA64 microcode update data" -HOMEPAGE="http://inertiawar.com/microcode/ https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=${NUM}" -SRC_URI="https://downloadmirror.intel.com/${NUM}/eng/microcode-${PV}.tgz" - -LICENSE="intel-ucode" -SLOT="0" -KEYWORDS="-* amd64 x86" -IUSE="initramfs +split-ucode" -REQUIRED_USE="|| ( initramfs split-ucode )" - -DEPEND="sys-apps/iucode_tool" -RDEPEND="!<sys-apps/microcode-ctl-1.17-r2" #268586 - -S=${WORKDIR} - -# TODO: -# Blacklist bad microcode here. -DEFAULT_MICROCODE_SIGNATURES="" - -# Advanced users only: -# merge with: -# only current CPU: MICROCODE_SIGNATURES="-S" -# only specific CPU: MICROCODE_SIGNATURES="-s 0x00000f4a -s 0x00010676" -# exclude specific CPU: MICROCODE_SIGNATURES="-s !0x00000686" -MICROCODE_SIGNATURES="${MICROCODE_SIGNATURES:=${DEFAULT_MICROCODE_SIGNATURES}}" - -pkg_pretend() { - if [[ "${MICROCODE_SIGNATURES}" != "${DEFAULT_MICROCODE_SIGNATURES}" ]]; then - ewarn "MICROCODE_SIGNATURES is set!" - ewarn "The user has decided to install only a SUBSET of microcode." - fi - use initramfs && mount-boot_pkg_pretend -} - -src_install() { - # This will take ALL of the upstream microcode sources: - # - microcode.dat - # - intel-ucode/ - # In some cases, they have not contained the same content (eg the directory has newer stuff). - MICROCODE_SRC=( - "${S}"/microcode.dat - "${S}"/intel-ucode/ - ) - opts=( - ${MICROCODE_SIGNATURES} - # be strict about what we are doing - --overwrite - --strict-checks - --no-ignore-broken - # show everything we find - --list-all - # show what we selected - --list - ) - - # The earlyfw cpio needs to be in /boot because it must be loaded before - # rootfs is mounted. - use initramfs && dodir /boot && opts+=( --write-earlyfw="${ED%/}"/boot/intel-uc.img ) - # split location: - use split-ucode && dodir /lib/firmware/intel-ucode && opts+=( --write-firmware="${ED%/}"/lib/firmware/intel-ucode ) - - iucode_tool \ - "${opts[@]}" \ - "${MICROCODE_SRC[@]}" \ - || die "iucode_tool ${opts[@]} ${MICROCODE_SRC[@]}" - - dodoc releasenote -} - -pkg_preinst() { - use initramfs && mount-boot_pkg_preinst -} - -pkg_prerm() { - use initramfs && mount-boot_pkg_prerm -} - -pkg_postrm() { - use initramfs && mount-boot_pkg_postrm -} - -pkg_postinst() { - use initramfs && mount-boot_pkg_postinst -} diff --git a/sys-firmware/intel-microcode/intel-microcode-20180527-r1.ebuild b/sys-firmware/intel-microcode/intel-microcode-20180527-r1.ebuild deleted file mode 100644 index 27b8f2ad168..00000000000 --- a/sys-firmware/intel-microcode/intel-microcode-20180527-r1.ebuild +++ /dev/null @@ -1,212 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit linux-info toolchain-funcs mount-boot - -# 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 - -COLLECTION_SNAPSHOT="20180527" -INTEL_SNAPSHOT="20180425" -NUM="27776" -DESCRIPTION="Intel IA32/IA64 microcode update data" -HOMEPAGE="http://inertiawar.com/microcode/ https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=${NUM}" -SRC_URI="https://downloadmirror.intel.com/${NUM}/eng/microcode-${INTEL_SNAPSHOT}.tgz - https://dev.gentoo.org/~whissi/dist/intel-microcode/intel-microcode-collection-${COLLECTION_SNAPSHOT}.tar.xz" - -LICENSE="intel-ucode" -SLOT="0" -KEYWORDS="-* amd64 x86" -IUSE="hostonly initramfs +split-ucode vanilla" -REQUIRED_USE="|| ( initramfs split-ucode )" - -DEPEND="sys-apps/iucode_tool" - -# !<sys-apps/microcode-ctl-1.17-r2 due to bug #268586 -RDEPEND="!<sys-apps/microcode-ctl-1.17-r2 - hostonly? ( sys-apps/iucode_tool )" - -S=${WORKDIR} - -# Blacklist bad microcode here. -# 0x000406f1 aka 06-4f-01 aka CPUID 406F1 require newer microcode loader -MICROCODE_BLACKLIST_DEFAULT="-s !0x000406f1" -MICROCODE_BLACKLIST="${MICROCODE_BLACKLIST:=${MICROCODE_BLACKLIST_DEFAULT}}" - -# In case we want to set some defaults ... -MICROCODE_SIGNATURES_DEFAULT="" - -# Advanced users only: -# merge with: -# only current CPU: MICROCODE_SIGNATURES="-S" -# only specific CPU: MICROCODE_SIGNATURES="-s 0x00000f4a -s 0x00010676" -# exclude specific CPU: MICROCODE_SIGNATURES="-s !0x00000686" -MICROCODE_SIGNATURES="${MICROCODE_SIGNATURES:=${MICROCODE_SIGNATURES_DEFAULT}}" - -pkg_pretend() { - if [[ "${MICROCODE_BLACKLIST}" != "${MICROCODE_BLACKLIST_DEFAULT}" ]]; then - ewarn "MICROCODE_BLACKLIST is set to \"${MICROCODE_BLACKLIST}\" instead of default \"${MICROCODE_BLACKLIST_DEFAULT}\". You are on your own!" - fi - - if [[ "${MICROCODE_SIGNATURES}" != "${MICROCODE_SIGNATURES_DEFAULT}" ]]; then - ewarn "The user has opted in for advanced use:" - ewarn "MICROCODE_SIGNATURES is set to \"${MICROCODE_SIGNATURES}\" instead of default \"${MICROCODE_SIGNATURES_DEFAULT}\"!" - fi - - use initramfs && mount-boot_pkg_pretend -} - -src_prepare() { - default - - # Prevent "invalid file format" errors from iucode_tool - rm -f "${S}"/intel-ucod*/list || die -} - -src_install() { - # This will take ALL of the upstream microcode sources: - # - microcode.dat - # - intel-ucode/ - # In some cases, they have not contained the same content (eg the directory has newer stuff). - MICROCODE_SRC=( - "${S}"/intel-ucode/ - "${S}"/intel-ucode-with-caveats/ - ) - - # Allow users who are scared about microcode updates not included in Intel's official - # microcode tarball to opt-out and comply with Intel marketing - if ! use vanilla; then - MICROCODE_SRC+=( "${S}"/intel-microcode-collection-${COLLECTION_SNAPSHOT} ) - fi - - opts=( - ${MICROCODE_BLACKLIST} - ${MICROCODE_SIGNATURES} - # be strict about what we are doing - --overwrite - --strict-checks - --no-ignore-broken - # we want to install latest version - --no-downgrade - # show everything we find - --list-all - # show what we selected - --list - ) - - # The earlyfw cpio needs to be in /boot because it must be loaded before - # rootfs is mounted. - use initramfs && dodir /boot && opts+=( --write-earlyfw="${ED%/}"/boot/intel-uc.img ) - # split location (we use a temporary location so that we are able - # to re-run iucode_tool in pkg_preinst; use keepdir instead of dodir to carry - # this folder to pkg_preinst to avoid an error even if no microcode was selected): - keepdir /tmp/intel-ucode && opts+=( --write-firmware="${ED%/}"/tmp/intel-ucode ) - - iucode_tool \ - "${opts[@]}" \ - "${MICROCODE_SRC[@]}" \ - || die "iucode_tool ${opts[@]} ${MICROCODE_SRC[@]}" - - dodoc releasenote -} - -pkg_preinst() { - use initramfs && mount-boot_pkg_preinst - - if use hostonly; then - einfo "Removing ucode(s) not supported by any currently available (=online) processor(s) due to USE=hostonly ..." - opts=( - --scan-system - # be strict about what we are doing - --overwrite - --strict-checks - --no-ignore-broken - # we want to install latest version - --no-downgrade - # show everything we find - --list-all - # show what we selected - --list - ) - - # The earlyfw cpio needs to be in /boot because it must be loaded before - # rootfs is mounted. - use initramfs && opts+=( --write-earlyfw="${ED%/}"/boot/intel-uc.img ) - # split location: - use split-ucode && dodir /lib/firmware/intel-ucode && opts+=( --write-firmware="${ED%/}"/lib/firmware/intel-ucode ) - - iucode_tool \ - "${opts[@]}" \ - "${ED%/}"/tmp/intel-ucode \ - || die "iucode_tool ${opts[@]} ${ED%/}/tmp/intel-ucode" - - else - if use split-ucode; then - # Temporary /tmp/intel-ucode will become final /lib/firmware/intel-ucode ... - dodir /lib/firmware - mv "${ED%/}/tmp/intel-ucode" "${ED%/}/lib/firmware" || die "Failed to install splitted ucodes!" - fi - fi - - # Cleanup any temporary leftovers so that we don't merge any - # unneeded files on disk - rm -r "${ED%/}/tmp" || die "Failed to cleanup '${ED%/}/tmp'" -} - -pkg_prerm() { - use initramfs && mount-boot_pkg_prerm -} - -pkg_postrm() { - use initramfs && mount-boot_pkg_postrm -} - -pkg_postinst() { - use initramfs && mount-boot_pkg_postinst - - local _has_installed_something= - if use initramfs && [[ -s "${EROOT%/}/boot/intel-uc.img" ]]; then - _has_installed_something="yes" - elif use split-ucode; then - _has_installed_something=$(find "${EROOT%/}/lib/firmware/intel-ucode" -maxdepth 0 -not -empty -exec echo yes \;) - fi - - if use hostonly && [[ -n "${_has_installed_something}" ]]; then - elog "You only installed ucode(s) for all currently available (=online)" - elog "processor(s). Remember to re-emerge this package whenever you" - elog "change the system's processor model." - elog "" - elif [[ -z "${_has_installed_something}" ]]; then - ewarn "WARNING:" - ewarn "No ucode was installed! You can ignore this warning if there" - ewarn "aren't any microcode updates available for your processor(s)." - ewarn "But if you use MICROCODE_SIGNATURES variable please double check" - ewarn "if you have an invalid select." - ewarn "" - - if use hostonly; then - ewarn "Unset \"hostonly\" USE flag to install all available ucodes." - ewarn "" - fi - fi - - # We cannot give detailed information if user is affected or not: - # If MICROCODE_BLACKLIST wasn't modified, user can still use MICROCODE_SIGNATURES - # to to force a specific, otherwise blacklisted, microcode. So we - # only show a generic warning based on running kernel version: - if kernel_is -lt 4 14 34; then - ewarn "${P} contains microcode updates which require" - ewarn "additional kernel patches which aren't yet included in kernel <4.14.34." - ewarn "Loading such a microcode through kernel interface from an unpatched kernel" - ewarn "can crash your system!" - ewarn "" - ewarn "Those microcodes are blacklisted per default. However, if you have altered" - ewarn "MICROCODE_BLACKLIST or MICROCODE_SIGNATURES, you maybe have unintentionally" - ewarn "re-enabled those microcodes...!" - ewarn "" - ewarn "Check \"${EROOT%/}/usr/share/doc/${PN}-*/releasenot*\" if your microcode update" - ewarn "requires additional kernel patches or not." - fi -} diff --git a/sys-firmware/intel-microcode/metadata.xml b/sys-firmware/intel-microcode/metadata.xml index 6708ec7d79d..6613dbb47ed 100644 --- a/sys-firmware/intel-microcode/metadata.xml +++ b/sys-firmware/intel-microcode/metadata.xml @@ -8,7 +8,6 @@ <use> <flag name="initramfs">install a small initramfs for use with CONFIG_MICROCODE_EARLY</flag> <flag name="hostonly">only install ucode(s) supported by currently available (=online) processor(s)</flag> - <flag name="monolithic">install the large text microcode.dat (used by older kernels via microcode_ctl)</flag> <flag name="split-ucode">install the split binary ucode files (used by the kernel directly)</flag> <flag name="vanilla">install only microcode updates from Intel's official microcode tarball</flag> </use>