summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2022-08-10 12:23:18 -0400
committerMike Pagano <mpagano@gentoo.org>2022-08-10 12:23:18 -0400
commite9c8747c382c6cdd32fc89e2366b499364a479de (patch)
tree74dbe8191143588b4d19629d31fb0a2aecf0046c /sys-firmware
parentdev-lang/python: Stabilize 3.10.6_p2 arm, #864741 (diff)
downloadgentoo-e9c8747c382c6cdd32fc89e2366b499364a479de.tar.gz
gentoo-e9c8747c382c6cdd32fc89e2366b499364a479de.tar.bz2
gentoo-e9c8747c382c6cdd32fc89e2366b499364a479de.zip
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@gentoo.org>
Diffstat (limited to 'sys-firmware')
-rw-r--r--sys-firmware/intel-microcode/intel-microcode-20220809_p20220809.ebuild13
1 files changed, 13 insertions, 0 deletions
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() {