Joseph Mingrone ffb64ba4a0
sysutils/cpu-microcode-amd: Update to 2025-12-02 snapshot
Update AMD CPU microcode for processor families 19h and 1ah.

From upstream's README:
NOTE: In order to not fully abandon machines affected by AMD-SB-7033 [1]
that have not received the BIOS update, the family 19h microcode
container now includes a second patch for these machines that brings the
microcode to the highest possible level without the microcode signing
fix.  While a BIOS update is highly recommended to receive the latest
security updates issued after the microcode signing vulnerability, this
will allow non-updated systems to at least receive some microcode
updates beyond the version provided by BIOS.

[1] https://www.amd.com/en/resources/product-security/bulletin/amd-sb-7033.html

Upstream Linux firmware commits since last update:
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/amd-ucode?id=2b318c8e4159234ddbcc1cadc90cf32d17d9ee82
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/amd-ucode?id=6167e5566900cf236f7a69704e8f4c441bc7212a
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/amd-ucode?id=e637542fa8b9e0a88b0b2885072eea7df3737969
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/amd-ucode?id=ad91544767665e911386e62ecebaa969e2cfb1c0
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/amd-ucode?id=3a49a7356a8c83a33d0214edfc5d8fd835caa93a

Reviewed by:	glebius
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D54272
2025-12-17 15:52:02 -04:00

54 lines
1.5 KiB
Makefile

PORTNAME= microcode
PORTVERSION= 20251202
CATEGORIES= sysutils
MASTER_SITES= https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/amd-ucode/
PKGNAMEPREFIX= cpu-
PKGNAMESUFFIX= -amd
DISTFILES= microcode_amd.bin?id=${_REV} \
microcode_amd_fam15h.bin?id=${_REV} \
microcode_amd_fam16h.bin?id=${_REV} \
microcode_amd_fam17h.bin?id=${_REV} \
microcode_amd_fam19h.bin?id=${_REV} \
microcode_amd_fam1ah.bin?id=${_REV}
DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
MAINTAINER= jrm@FreeBSD.org
COMMENT= AMD CPU microcode updates
LICENSE= EULA
LICENSE_NAME= Advanced Micro Devices License Agreement
LICENSE_FILE= ${FILESDIR}/LICENSE.amd-ucode
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
ONLY_FOR_ARCHS= amd64 i386
RUN_DEPENDS= ${LOCALBASE}/etc/rc.d/microcode_update:sysutils/cpu-microcode-rc
DATADIR= ${PREFIX}/share/cpucontrol
FWDIR= /boot/firmware
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS= # empty
EXTRACT_AFTER_ARGS= .
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
PLIST_FILES= ${DISTFILES:S/^/${DATADIR}\//g:C/\?.*//} \
${FWDIR}/amd-ucode.bin
_REV= 2b318c8e4159234ddbcc1cadc90cf32d17d9ee82
post-extract:
${CAT} ${WRKSRC}/microcode_amd* > ${WRKSRC}/amd-ucode.bin
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}/
${MKDIR} ${STAGEDIR}${FWDIR}
${INSTALL_DATA} ${WRKSRC}/amd-ucode.bin ${STAGEDIR}${FWDIR}/
.for f in ${DISTFILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}/${f:C/\?.*//}
.endfor
.include <bsd.port.mk>