freebsd-ports/sysutils/devcpu-data/files/Makefile
Sunpoet Po-Chuan Hsieh 3eddb1dcc6 - Update AMD microcode to 2014-12-01
- Bump PORTVERSION to 1.5
- While I'm here, use versioned AMD microcode archive

PR:		198371
Submitted by:	John Clark <clarkjc@runbox.com> (maintainer)
2015-03-06 22:37:04 +00:00

18 lines
513 B
Makefile

AMD_UCODE_DIR= amd-ucode
AMD_UCODE= $(AMD_UCODE_DIR)/microcode_amd.bin \
$(AMD_UCODE_DIR)/microcode_amd_fam15h.bin \
$(AMD_UCODE_DIR)/microcode_amd_fam16h.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)
# Use the host cc to compile ucode-tool in case of cross-compile
ucode-tool: ucode-tool.c
cc ucode-tool.c -o $@
clean:
rm -rf $(OUTPUT_DIR) ucode-tool