Sean Bruno 94732c2282 sysutils/devcpu-data
- Update AMD microcode
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/amd-ucode?id=7518922bd5b98b137af7aaf3c836f5a498e91609
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/amd-ucode?id=77101513943ef198e2050667c87abf19e6cbb1d8

At least on my FX-8150, I can run spectre test code and it fails after
applying the 15h update.

I have not seen a system that needs the 17h update, and we think this
only covers EPYC processors, not Ryzen.

When I tested this on an EPYC at work, the tools detected that the 17h
microcode was correct but uneeded for the Dell system.

PR:		228567
Sponsored by:	Limelight Networks
Differential Revision:	https://reviews.freebsd.org/D15523
2018-05-28 17:08:35 +00:00

41 lines
1.1 KiB
Makefile

# Created by: stas
# $FreeBSD$
PORTNAME= data
PORTVERSION= 1.17
CATEGORIES= sysutils
MASTER_SITES= https://downloadmirror.intel.com/27776/eng/:intel \
LOCAL/sbruno:amd
PKGNAMEPREFIX= devcpu-
DISTFILES= microcode-20180425.tgz:intel \
amd64-microcode.20180525.tar.xz:amd
MAINTAINER= sbruno@freebsd.org
COMMENT= Intel and AMD CPUs microcode updates
LICENSE= EULA
LICENSE_NAME= Intel Software License Agreement
LICENSE_FILE= ${FILESDIR}/LICENSE
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
ONLY_FOR_ARCHS= amd64 i386
NO_ARCH= yes
NO_WRKSUBDIR= yes
DATADIR= ${PREFIX}/share/cpucontrol
USE_RC_SUBR= microcode_update
post-extract:
${CP} -p ${FILESDIR}/Makefile ${FILESDIR}/ucode-split.c ${WRKSRC}
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/microcode_amd.bin ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/microcode_amd_fam15h.bin ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/microcode_amd_fam16h.bin ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/microcode_amd_fam17h.bin ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/mcodes/* ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>