pkgsrc/sysutils/intel-microcode-netbsd/Makefile
msaitoh 0a74f6a971 Update intel-microcode-netbsd to 20210216.
## microcode-20210216

### Purpose

- Security updates for INTEL-SA-00381

### New Platforms

None

### Updated Platforms

| Processor      | Stepping | F-M-S/PI    | Old Ver  | New Ver  | Products
|:---------------|:---------|:------------|:---------|:---------|:---------
| SKX-SP         | H0/M0/U0 | 06-55-04/b7 | 02006a08 | 02006a0a | Xeon Scalable
| SKX-D          | M1       | 06-55-04/b7 | 02006a08 | 02006a0a | Xeon D-21xx
| CLX-SP         | B0       | 06-55-06/bf | 04003003 | 04003006 | Xeon Scalable Gen2
| CLX-SP         | B1       | 06-55-07/bf | 05003003 | 05003006 | Xeon Scalable Gen2

### Removed Platforms

None
2021-02-17 04:19:47 +00:00

45 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.46 2021/02/17 04:19:47 msaitoh Exp $
VERSION= 20210216
DISTNAME= microcode-${VERSION}
PKGNAME= intel-microcode-netbsd-${VERSION}
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_GITHUB:=intel/}
GITHUB_PROJECT= Intel-Linux-Processor-Microcode-Data-Files
GITHUB_TAG= ${DISTNAME}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/
COMMENT= Firmware updates for Intel x86 processors
LICENSE= intel-microcode-license
ONLY_FOR_PLATFORM+= NetBSD-6.99.*-i386 \
NetBSD-6.99.*-x86_64 \
NetBSD-[7-9].*-i386 \
NetBSD-[7-9].*-x86_64
WRKSRC= ${WRKDIR}
USE_LANGUAGES= c
FWDIR= libdata/firmware/cpu_x86_intel1
INSTALLATION_DIRS+= ${FWDIR}
RCD_SCRIPTS+= intel-microcode
post-extract:
${CP} ${FILESDIR}/extract.c ${WRKSRC}
do-build:
cd ${WRKSRC} && ${CC} extract.c -o extract
do-install:
(if [ -f ${WRKSRC}/microcode.dat ]; then \
cd ${DESTDIR}${PREFIX}/${FWDIR} && \
${WRKSRC}/extract ${WRKSRC}/microcode.dat ; \
else \
cd ${DESTDIR}${PREFIX}/${FWDIR} && \
${FIND} ${WRKSRC} -name '??-??-??' | xargs \
${WRKSRC}/extract ; \
fi)
.include "../../mk/bsd.pkg.mk"