sys-kernel/coreos-firmware: include new amd ucode

Gentoo is shipping ucode not in linux-firmware for Spectre mitigation.
We should do the same. Update the ebuild to include their sources as
well.
This commit is contained in:
Andrew Jeddeloh 2018-01-16 17:05:33 -08:00
parent 324a9526ea
commit 34672dbe01
3 changed files with 10 additions and 2 deletions

View File

@ -1 +1,2 @@
DIST linux-firmware-20180103.tar.gz 138263360 SHA256 07b46a7ec8fc7337d5e64598b2aa9220c30c6bc03930787dfd15b08326391981 SHA512 ed95205c075b47a2f30d9c96181ca0047de017abb1b5904f7c504a0afb8ea673c179980eb92d5690dd1a5cfb29815f224f384b4dcc472f80ddc90af3b2cbd4ce WHIRLPOOL 7a00ed9795b394f09cd50fdecf3417d585d42513f7210025425cf2234a6f359652a92558a67ec7169a6c47bc4adc67fa1974d710bc4263b8fe103d09998434e9
DIST microcode_amd_fam17h.tar.gz 2204 SHA256 a09b9f9a799ed0124fc108783e4955f3dd3aa345a3424d3ac48acae4bf5b9499 SHA512 d3b52797a5968f8da76d39322780e61d04bab5d810b0b07d64e469fcd67998e4191b0e0a9ab7e4c27189941369ef1b2850bbbb1458fd9bbeb958c98f6e378510 WHIRLPOOL 227439fd174347fdc511d898baa366a05afd9246dc6fa52bb13438f9f059f32ada217bb31c47b3947e00141c3b8f2451833a8374e3f8753e26ce311b2114bda4

View File

@ -15,8 +15,11 @@ if [[ ${PV} == 99999999* ]]; then
EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
KEYWORDS=""
else
SRC_URI="mirror://gentoo/linux-firmware-${PV}.tar.gz"
KEYWORDS="amd64 arm64"
GIT_COMMIT="2eefafb2e9dcbafdf4b83d8c43fcd6b75fd4ac78"
SRC_URI="https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/linux-firmware-${GIT_COMMIT}.tar.gz -> linux-firmware-${PV}.tar.gz
mirror://gentoo/microcode_amd_fam17h.tar.gz
https://dev.gentoo.org/~whissi/dist/${PN}/microcode_amd_fam17h.tar.gz"
KEYWORDS="~alpha amd64 ~arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86"
fi
DESCRIPTION="Linux firmware files"
@ -81,6 +84,10 @@ src_unpack() {
}
src_prepare() {
# Move the amd ucode as well. This can be dropped once gentoo drops it from
# their ebuild.
mv "${WORKDIR}"/microcode_amd_fam17h.bin "${S}"/amd-ucode || die
local kernel_mods="${ROOT}/lib/modules/${KV_FULL}"
# Fail if any firmware is missing.