3 # The FIT table is generated as a separate CBFS file.
4 # The FIT pointer is reserved in fit.c and updated to point to the 'intel_fit'
5 # CBFS file using 'ifittool -F'.
6 # With a TOP_SWAP enabled bootblock the FIT pointer at the top swap offset
7 # will point to the 'intel_fit_ts' CBFS file.
9 cbfs-files-y += intel_fit
10 intel_fit-file := fit_table.c:struct
11 intel_fit-type := intel_fit
14 $(call add_intermediate, set_fit_ptr, $(IFITTOOL))
15 @printf " UPDATE-FIT set FIT pointer to table\n"
16 $(IFITTOOL) -f $< -F -n intel_fit -r COREBOOT -c
18 FIT_ENTRY=$(call strip_quotes, $(CONFIG_INTEL_TOP_SWAP_FIT_ENTRY_FMAP_REG))
20 ifneq ($(CONFIG_UPDATE_IMAGE),y) # never update the bootblock
22 ifneq ($(CONFIG_CPU_MICROCODE_CBFS_NONE),y)
24 $(call add_intermediate, add_mcu_fit, set_fit_ptr $(IFITTOOL))
25 @printf " UPDATE-FIT Microcode\n"
26 $(IFITTOOL) -f $< -a -n cpu_microcode_blob.bin -t 1 -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -r COREBOOT
28 # Second FIT in TOP_SWAP bootblock
29 ifeq ($(CONFIG_INTEL_ADD_TOP_SWAP_BOOTBLOCK),y)
31 $(call add_intermediate, set_ts_fit_ptr, $(IFITTOOL))
32 @printf " UPDATE-FIT Top Swap: set FIT pointer to table\n"
33 $(IFITTOOL) -f $< -F -n intel_fit_ts -r COREBOOT $(TS_OPTIONS)
35 $(call add_intermediate, add_ts_mcu_fit, set_ts_fit_ptr $(IFITTOOL))
36 @printf " UPDATE-FIT Top Swap: Microcode\n"
38 $(IFITTOOL) -f $< -A -n $(FIT_ENTRY) -t 1 -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) $(TS_OPTIONS) -r COREBOOT
40 $(IFITTOOL) -f $< -a -n cpu_microcode_blob.bin -t 1 -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) $(TS_OPTIONS) -r COREBOOT
42 cbfs-files-y += intel_fit_ts
43 intel_fit_ts-file := fit_table.c:struct
44 intel_fit_ts-type := intel_fit
45 intel_fit_ts-align := 16
47 endif # CONFIG_INTEL_ADD_TOP_SWAP_BOOTBLOCK
49 endif # CONFIG_CPU_MICROCODE_CBFS_NONE
51 endif # CONFIG_UPDATE_IMAGE