| 1 |
|
| 2 |
|
| 3 |
bootblock-y += fit.c |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
cbfs-files-y += intel_fit |
| 12 |
intel_fit-file := fit_table.c:struct |
| 13 |
intel_fit-type := intel_fit |
| 14 |
intel_fit-align := 16 |
| 15 |
|
| 16 |
$(call add_intermediate, set_fit_ptr, $(IFITTOOL)) |
| 17 |
@printf " UPDATE-FIT set FIT pointer to table\n" |
| 18 |
$(IFITTOOL) -f $< -F -n intel_fit -r COREBOOT -c |
| 19 |
|
| 20 |
FIT_ENTRY=$(call strip_quotes, $(CONFIG_INTEL_TOP_SWAP_FIT_ENTRY_FMAP_REG)) |
| 21 |
|
| 22 |
ifneq ($(CONFIG_UPDATE_IMAGE),y) |
| 23 |
|
| 24 |
ifneq ($(CONFIG_CPU_MICROCODE_CBFS_NONE)$(CONFIG_CPU_INTEL_MICROCODE_CBFS_SPLIT_BINS),y) |
| 25 |
|
| 26 |
$(call add_intermediate, add_mcu_fit, set_fit_ptr $(IFITTOOL)) |
| 27 |
@printf " UPDATE-FIT Microcode\n" |
| 28 |
$(IFITTOOL) -f $< -a -n cpu_microcode_blob.bin -t 1 -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -r COREBOOT |
| 29 |
|
| 30 |
|
| 31 |
ifeq ($(CONFIG_INTEL_ADD_TOP_SWAP_BOOTBLOCK),y) |
| 32 |
|
| 33 |
$(call add_intermediate, set_ts_fit_ptr, $(IFITTOOL)) |
| 34 |
@printf " UPDATE-FIT Top Swap: set FIT pointer to table\n" |
| 35 |
$(IFITTOOL) -f $< -F -n intel_fit_ts -r COREBOOT $(TS_OPTIONS) |
| 36 |
|
| 37 |
$(call add_intermediate, add_ts_mcu_fit, set_ts_fit_ptr $(IFITTOOL)) |
| 38 |
@printf " UPDATE-FIT Top Swap: Microcode\n" |
| 39 |
ifneq ($(FIT_ENTRY),) |
| 40 |
$(IFITTOOL) -f $< -A -n $(FIT_ENTRY) -t 1 -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) $(TS_OPTIONS) -r COREBOOT |
| 41 |
endif |
| 42 |
$(IFITTOOL) -f $< -a -n cpu_microcode_blob.bin -t 1 -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) $(TS_OPTIONS) -r COREBOOT |
| 43 |
|
| 44 |
cbfs-files-y += intel_fit_ts |
| 45 |
intel_fit_ts-file := fit_table.c:struct |
| 46 |
intel_fit_ts-type := intel_fit |
| 47 |
intel_fit_ts-align := 16 |
| 48 |
|
| 49 |
endif |
| 50 |
|
| 51 |
endif |
| 52 |
|
| 53 |
|
| 54 |
ifeq ($(CONFIG_HAVE_PBP_BIN),y) |
| 55 |
|
| 56 |
cbfs-files-y += pbp.bin |
| 57 |
pbp.bin-file := $(call strip_quotes,$(CONFIG_PBP_BIN_PATH)) |
| 58 |
pbp.bin-type := raw |
| 59 |
|
| 60 |
$(call add_intermediate, add_pbp_fit, set_fit_ptr $(IFITTOOL)) |
| 61 |
@printf " UPDATE-FIT Platform Boot Policy binary\n" |
| 62 |
$(IFITTOOL) -f $< -a -n pbp.bin -t 4 -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -r COREBOOT |
| 63 |
|
| 64 |
endif |
| 65 |
|
| 66 |
endif |