sysutils/devcpu-data: Update AMD microcode, add cpu 17h microcode,

drop malfunctioning individual "AMD-XXX" files.

On the few machines that actually have microcode updates, chopping up the
microcode is incorrect and results in a failure to update.  Don't do that.

I personally run this on my FX-8150 and this has been tested by a few others.

Sponsored by:	 Limelight Networks
Differential Revision:	https://reviews.freebsd.org/D13832
This commit is contained in:
Sean Bruno
2018-01-13 21:35:44 +00:00
parent 51f4c6d8ea
commit 094e28c74e
4 changed files with 13 additions and 25 deletions

View File

@@ -1,14 +1,15 @@
AMD_UCODE_DIR= amd-ucode
AMD_UCODE_DIR= amd64-microcode-3.20171205.1
AMD_UCODE= $(AMD_UCODE_DIR)/microcode_amd.bin \
$(AMD_UCODE_DIR)/microcode_amd_fam15h.bin \
$(AMD_UCODE_DIR)/microcode_amd_fam16h.bin
$(AMD_UCODE_DIR)/microcode_amd_fam16h.bin \
$(AMD_UCODE_DIR)/microcode_amd_fam17h.bin
INTEL_UCODE= microcode.dat
OUTPUT_DIR= mcodes
all: ucode
ucode: ucode-tool
mkdir -p $(OUTPUT_DIR)
./ucode-tool -o $(OUTPUT_DIR) -i $(INTEL_UCODE)
./ucode-tool -o $(OUTPUT_DIR) -a $(AMD_UCODE)
mv ${AMD_UCODE} $(OUTPUT_DIR)
# Use the host cc to compile ucode-tool in case of cross-compile
ucode-tool: ucode-tool.c