summaryrefslogtreecommitdiff
path: root/sysutils/devcpu-data/files/Makefile
blob: 9da3a13fe4c0c9dbf02d7d24f50d0fe7c10fff4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $FreeBSD$

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