Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Commit

Permalink
sys-kernel/coreos-kernel: include microcode
Browse files Browse the repository at this point in the history
Include microcode via the CONFIG_EXTRA_FIRMWARE option since prepending
a cpio archive to bootengine.cpio doesn't work (needs to be a seperate
initrd).
  • Loading branch information
Andrew Jeddeloh committed Jan 17, 2018
1 parent b8574cf commit a537598
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -26,7 +26,8 @@ DEPEND="${RDEPEND}
sys-fs/e2fsprogs
sys-fs/mdadm
sys-fs/xfsprogs
>=sys-kernel/coreos-firmware-20160331-r1:=
sys-firmware/intel-microcode
>=sys-kernel/coreos-firmware-20180103-r1:=
>=sys-kernel/bootengine-0.0.4:=
sys-kernel/dracut
virtual/udev"
Expand Down Expand Up @@ -60,6 +61,11 @@ src_prepare() {
# Symlink to bootengine.cpio so we can stick with relative paths in .config
ln -sv "${ROOT}"/usr/share/bootengine/bootengine.cpio build/ || die
config_update 'CONFIG_INITRAMFS_SOURCE="bootengine.cpio"'

# include all intel and amd microcode files, avoiding the signatures
local fw_dir="${ROOT}lib/firmware"
config_update "CONFIG_EXTRA_FIRMWARE=\"$(find ${fw_dir} -type f \( -path ${fw_dir}'/intel-ucode/*' -o -path ${fw_dir}'/amd-ucode/*' \) -printf '%P ')\""
config_update "CONFIG_EXTRA_FIRMWARE_DIR=\"${fw_dir}\""
}

src_compile() {
Expand Down

0 comments on commit a537598

Please sign in to comment.