diff options
author | Joseph Mingrone <jrm@FreeBSD.org> | 2023-08-10 13:57:31 -0300 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2023-08-16 14:06:40 -0300 |
commit | bc7829212d153aeff69b439d08e2e3001ef88ba3 (patch) | |
tree | dbd5b697523d2fe44889d386bd07de89d5b4dad4 /sysutils/cpu-microcode-intel/files/Makefile | |
parent | security/tailscale: Update to 1.48.0 (diff) |
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
Diffstat (limited to 'sysutils/cpu-microcode-intel/files/Makefile')
-rw-r--r-- | sysutils/cpu-microcode-intel/files/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/cpu-microcode-intel/files/Makefile b/sysutils/cpu-microcode-intel/files/Makefile new file mode 100644 index 000000000000..975279ec2a14 --- /dev/null +++ b/sysutils/cpu-microcode-intel/files/Makefile @@ -0,0 +1,18 @@ +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 |