mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
bump(sys-firmware/intel-microcode): sync with upstream
This commit is contained in:
parent
cb814781fd
commit
b654c58fb0
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=install postinst postrm preinst prerm pretend
|
||||
DEPEND=sys-apps/iucode_tool
|
||||
DESCRIPTION=Intel IA32/IA64 microcode update data
|
||||
EAPI=6
|
||||
HOMEPAGE=http://inertiawar.com/microcode/ https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=27337
|
||||
IUSE=initramfs +split-ucode
|
||||
KEYWORDS=-* amd64 x86
|
||||
LICENSE=intel-ucode
|
||||
RDEPEND=!<sys-apps/microcode-ctl-1.17-r2
|
||||
REQUIRED_USE=|| ( initramfs split-ucode )
|
||||
SLOT=0
|
||||
SRC_URI=http://downloadmirror.intel.com/27337/eng/microcode-20171117.tgz
|
||||
_eclasses_=mount-boot 1e82d96b7a7dcb483b412497a90bb646 multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af
|
||||
_md5_=1de88fad5949018acaaae4a7b412a3c2
|
@ -0,0 +1,14 @@
|
||||
DEFINED_PHASES=install postinst postrm preinst prerm pretend
|
||||
DEPEND=sys-apps/iucode_tool
|
||||
DESCRIPTION=Intel IA32/IA64 microcode update data
|
||||
EAPI=6
|
||||
HOMEPAGE=http://inertiawar.com/microcode/ https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=27591
|
||||
IUSE=initramfs +split-ucode
|
||||
KEYWORDS=-* ~amd64 ~x86
|
||||
LICENSE=intel-ucode
|
||||
RDEPEND=!<sys-apps/microcode-ctl-1.17-r2
|
||||
REQUIRED_USE=|| ( initramfs split-ucode )
|
||||
SLOT=0
|
||||
SRC_URI=https://downloadmirror.intel.com/27591/eng/microcode-20180312.tgz
|
||||
_eclasses_=mount-boot 1e82d96b7a7dcb483b412497a90bb646 multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af
|
||||
_md5_=55881eaf145b59f26451cd26f162152d
|
@ -12,3 +12,4 @@ DIST microcode-20171117.tgz 3594762 BLAKE2B 7a02c28ec6b9b22a367f8fd7d59f244d0195
|
||||
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
|
||||
|
@ -0,0 +1,95 @@
|
||||
# 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
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
# 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user