From 759e4de856444ae3483697b0d2139fbad3395c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 13 Jan 2019 17:09:00 +0100 Subject: sys-kernel/linux: add micro-code to syslinux configuration --- sys-kernel/linux/linux-4.19.13-r1.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys-kernel/linux') diff --git a/sys-kernel/linux/linux-4.19.13-r1.ebuild b/sys-kernel/linux/linux-4.19.13-r1.ebuild index dbd7310..3f27472 100644 --- a/sys-kernel/linux/linux-4.19.13-r1.ebuild +++ b/sys-kernel/linux/linux-4.19.13-r1.ebuild @@ -14,7 +14,7 @@ S="${WORKDIR}/linux-${VER}" LICENSE="GPLv2" SLOT="${PV}" KEYWORDS="amd64 ~x86" -IUSE="virt initramfs amd intel" +IUSE="virt initramfs amd intel ucode" DEPEND=" sys-devel/bc @@ -70,7 +70,11 @@ pkg_postinst() { sysfile if ! grep -q "^LABEL gentoo-${PV}$" "${SYSLINUX}"; then if $(use initramfs); then - INITRD="\tINITRD ${PFIX}/initramfs-gentoo\n" + if $(use ucode); then + INITRD="\tINITRD ${PFIX}/ucode.cpio,${PFIX}/initramfs-gentoo\n" + else + INITRD="\tINITRD ${PFIX}/initramfs-gentoo\n" + fi fi ARGS="$(grep -E "^# ARGS: " "${SYSLINUX}" | sed 's/^# ARGS: //')" if [ -n "$ARGS" ]; then -- cgit v1.2.3