commit: e9c8747c382c6cdd32fc89e2366b499364a479de Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Wed Aug 10 16:23:18 2022 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Wed Aug 10 16:23:18 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9c8747c
sys-firmware/intel-microcode: Add pkg docs and minor fix Remove non-microcode file from uncompressed source so that the iucode_tool does not break installation Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> .../intel-microcode-20220809_p20220809.ebuild | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sys-firmware/intel-microcode/intel-microcode-20220809_p20220809.ebuild b/sys-firmware/intel-microcode/intel-microcode-20220809_p20220809.ebuild index 4171888a5826..9f6c94996cbe 100644 --- a/sys-firmware/intel-microcode/intel-microcode-20220809_p20220809.ebuild +++ b/sys-firmware/intel-microcode/intel-microcode-20220809_p20220809.ebuild @@ -56,6 +56,17 @@ MICROCODE_SIGNATURES_DEFAULT="" # only specific CPU: MICROCODE_SIGNATURES="-s 0x00000f4a -s 0x00010676" # exclude specific CPU: MICROCODE_SIGNATURES="-s !0x00000686" +#Version bump instructions : +# 1. The ebuild is the form of intel-microcode-<INTEL_SNAPSHOT>_p<COLLECTION_SNAPSHOT>.ebuild +# 2. The INTEL_SNAPSHOT upstream is located at: https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files\ +# 3. The COLLECTION_SNAPSHOT is created manually using the following steps: +# a. Clone the repository https://github.com/platomav/CPUMicrocodes +# b. Rename the Intel directory to intel-microcode-collection-<YYYYMMDD> +# c. From the CPUMicrocodes directory tar and xz compress the contents of intel-microcode-collection-<YYYYMMDD>: +# tar -cJf intel-microcode-collection-<YYYYMMDD>.tar.xz intel-microcode-collection-<YYYYMMDD>/ +# d. This file can go in your devspace, add the URL to SRC_URI if it's not there +# https://dev.gentoo.org/~<dev nick>/dist/intel-microcode/intel-microcode-collection-${COLLECTION_SNAPSHOT}.tar.xz + pkg_pretend() { use initramfs && mount-boot_pkg_pretend } @@ -76,6 +87,8 @@ src_prepare() { # Prevent "invalid file format" errors from iucode_tool rm -f "${S}"/intel-ucod*/list || die + # Remove non-microcode file from list + rm -f "${S}"/intel-ucode/LICENSE } src_install() {
