ports/sysutils/cpu-microcode-intel/files/Makefile
Joseph Mingrone bc7829212d
sysutils/cpu-microcode-*: Reorganize CPU microcode ports
Prior to this update, sysutils/devcpu-data, which only contained an RC
script, had run dependencies on the AMD and Intel microcode ports.  This
made it cumbersome to have just the AMD or just the Intel microcode
ports installed.  With this change, the microcode ports now depend on
the RC script.

Other changes:

- Use more intuitive port names: cpu-microcode, cpu-microcode-amd,
  cpu-microcode-intel, and cpu-microcode-rc.
- Add the metaport, cpu-microcode, which pulls in all related ports.
- Pet portclippy/portfmt

Reviewed by:	lwhsu, markj
Approved by:	sbruno (maintainer)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D41406
2023-08-16 14:06:40 -03: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