ports/sysutils/devcpu-data-intel/files/Makefile
Joseph Mingrone 813905682e
sysutils/devcpu-data: Split off two new ports for vendor data
sysutils/devcpu-data is now just an RC script that optionally depends on
two new ports, sysutils/devcpu-data-amd and sysutils/devcpu-data-intel.
The two new ports each contain vendor microcode data.

While here:

- Set missing license information.  The license was obtained from
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/LICENSE.amd-ucode

- Update varaible ordering per portclippy

Reviewed by:	decke, emaste, markj
Approved by:	sbruno (maintainer)
Differential Revision:	https://reviews.freebsd.org/D32349
2021-11-07 17:17:03 -04:00

18 lines
475 B
Makefile

INTEL_UCODE= Intel-Linux-Processor-Microcode-Data-Files-%%GH_TAGNAME%%/intel-ucode
OUTPUT_DIR= mcodes
all: ucode
ucode: ucode-split
mkdir -p $(OUTPUT_DIR)
cd ${OUTPUT_DIR} && \
for file in \
../${INTEL_UCODE}/[0-9,a-f][0-9,a-f]-[0-9,a-f][0-9,a-f]-[0-9,a-f][0-9,a-f]; do \
../ucode-split $$file; \
done
# Use the host cc to compile ucode-split in case of cross-compile
ucode-split: ucode-split.c
${CC} ucode-split.c -o $@
clean:
rm -rf $(OUTPUT_DIR) ucode-split