diff options
Diffstat (limited to 'recipes-core/microcode/intel-microcode_20250812.bb')
| -rw-r--r-- | recipes-core/microcode/intel-microcode_20250812.bb | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/recipes-core/microcode/intel-microcode_20250812.bb b/recipes-core/microcode/intel-microcode_20250812.bb new file mode 100644 index 00000000..a719679f --- /dev/null +++ b/recipes-core/microcode/intel-microcode_20250812.bb | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | SUMMARY = "Intel Processor Microcode Datafile for Linux" | ||
| 2 | HOMEPAGE = "http://www.intel.com/" | ||
| 3 | DESCRIPTION = "The microcode data file contains the latest microcode\ | ||
| 4 | definitions for all Intel processors. Intel releases microcode updates\ | ||
| 5 | to correct processor behavior as documented in the respective processor\ | ||
| 6 | specification updates. While the regular approach to getting this microcode\ | ||
| 7 | update is via a BIOS upgrade, Intel realizes that this can be an\ | ||
| 8 | administrative hassle. The Linux operating system and VMware ESX\ | ||
| 9 | products have a mechanism to update the microcode after booting.\ | ||
| 10 | For example, this file will be used by the operating system mechanism\ | ||
| 11 | if the file is placed in the /etc/firmware directory of the Linux system." | ||
| 12 | |||
| 13 | LICENSE = "Intel-Microcode-License" | ||
| 14 | LIC_FILES_CHKSUM = "file://license;md5=d8405101ec6e90c1d84b082b0c40c721" | ||
| 15 | |||
| 16 | SRC_URI = "git://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files.git;protocol=https;branch=main \ | ||
| 17 | " | ||
| 18 | |||
| 19 | SRCREV = "4ded52b4b0e1d60e83259cc88d1f5ad22f71a63e" | ||
| 20 | |||
| 21 | DEPENDS = "iucode-tool-native" | ||
| 22 | |||
| 23 | COMPATIBLE_HOST = "(i.86|x86_64).*-linux" | ||
| 24 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 25 | |||
| 26 | inherit deploy | ||
| 27 | |||
| 28 | # Use any of the iucode_tool parameters to filter specific microcodes from the data file | ||
| 29 | # For further information, check the iucode-tool's manpage : http://manned.org/iucode-tool | ||
| 30 | UCODE_FILTER_PARAMETERS ?= "" | ||
| 31 | |||
| 32 | do_compile() { | ||
| 33 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ | ||
| 34 | ${UCODE_FILTER_PARAMETERS} \ | ||
| 35 | --overwrite \ | ||
| 36 | --write-earlyfw=${WORKDIR}/microcode_${PV}.cpio \ | ||
| 37 | ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/* | ||
| 38 | } | ||
| 39 | |||
| 40 | do_install() { | ||
| 41 | install -d ${D}${nonarch_base_libdir}/firmware/intel-ucode/ | ||
| 42 | ${STAGING_DIR_NATIVE}${sbindir_native}/iucode_tool \ | ||
| 43 | ${UCODE_FILTER_PARAMETERS} \ | ||
| 44 | --write-firmware=${D}${nonarch_base_libdir}/firmware/intel-ucode \ | ||
| 45 | ${S}/intel-ucode/* ${S}/intel-ucode-with-caveats/* | ||
| 46 | } | ||
| 47 | |||
| 48 | do_deploy() { | ||
| 49 | install -d ${DEPLOYDIR} | ||
| 50 | install ${WORKDIR}/microcode_${PV}.cpio ${DEPLOYDIR}/ | ||
| 51 | cd ${DEPLOYDIR} | ||
| 52 | rm -f microcode.cpio | ||
| 53 | ln -sf microcode_${PV}.cpio microcode.cpio | ||
| 54 | } | ||
| 55 | |||
| 56 | addtask deploy before do_build after do_compile | ||
| 57 | |||
| 58 | PACKAGES = "${PN}" | ||
| 59 | |||
| 60 | FILES:${PN} = "${nonarch_base_libdir}" | ||
| 61 | |||
| 62 | UPSTREAM_CHECK_GITTAGREGEX = "^microcode-(?P<pver>(\d+)[a-z]*)$" | ||
