summaryrefslogtreecommitdiff
path: root/src/cpu/intel/microcode/Makefile.inc
blob: f4d01020d154321ad7f8e0d5cefaf6b7c3746ab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ramstage-y += microcode.c


ifeq ($(CONFIG_MICROCODE_IN_CBFS),y)

SRC_PATH = src/cpu/intel/microcode
FLAGS = -I $(CONFIG_MICROCODE_INCLUDE_PATH) -include $(obj)/config.h
$(obj)/microcode_blob.o: $(SRC_PATH)/microcode_blob.c
	$(CC) $(FLAGS) -MMD -c -o $@ $<

$(obj)/microcode_blob.bin: $(obj)/microcode_blob.o
	objcopy -j .data -O binary $< $@

-include $(obj)/microcode_blob.d
endif