mirror of
https://git.freebsd.org/ports.git
synced 2025-05-17 17:43:11 -04:00
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
18 lines
475 B
Makefile
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
|