Patrick Rudolph | 5fffb5e | 2019-07-25 11:55:30 +0200 | [diff] [blame] | 1 | ifeq ($(CONFIG_INTEL_TXT),y) |
| 2 | |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 3 | romstage-y += common.c |
| 4 | romstage-$(CONFIG_INTEL_TXT_LOGGING) += logging.c |
| 5 | |
| 6 | ramstage-y += common.c |
| 7 | ramstage-y += getsec.c |
| 8 | ramstage-y += getsec_enteraccs.S |
| 9 | ramstage-y += ramstage.c |
| 10 | ramstage-$(CONFIG_INTEL_TXT_LOGGING) += logging.c |
| 11 | |
Patrick Rudolph | 5fffb5e | 2019-07-25 11:55:30 +0200 | [diff] [blame] | 12 | cbfs-files-y += txt_bios_acm.bin |
| 13 | txt_bios_acm.bin-file := $(CONFIG_INTEL_TXT_BIOSACM_FILE) |
| 14 | txt_bios_acm.bin-type := raw |
| 15 | txt_bios_acm.bin-align := $(CONFIG_INTEL_TXT_BIOSACM_ALIGNMENT) |
| 16 | |
| 17 | ifneq ($(CONFIG_INTEL_TXT_SINITACM_FILE),"") |
| 18 | cbfs-files-y += txt_sinit_acm.bin |
| 19 | txt_sinit_acm.bin-file := $(CONFIG_INTEL_TXT_SINITACM_FILE) |
| 20 | txt_sinit_acm.bin-type := raw |
| 21 | txt_sinit_acm.bin-align := 0x10 |
| 22 | txt_sinit_acm.bin-compression := lzma |
| 23 | endif |
| 24 | |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 25 | ifeq ($(CONFIG_CPU_INTEL_FIRMWARE_INTERFACE_TABLE),y) |
| 26 | |
Patrick Rudolph | 5fffb5e | 2019-07-25 11:55:30 +0200 | [diff] [blame] | 27 | INTERMEDIATE+=add_acm_fit |
| 28 | add_acm_fit: $(obj)/coreboot.pre $(IFITTOOL) |
| 29 | $(IFITTOOL) -r COREBOOT -a -n txt_bios_acm.bin -t 2 -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -f $< |
| 30 | |
Patrick Rudolph | d9c799c | 2019-02-19 10:57:16 +0100 | [diff] [blame] | 31 | # Initial BootBlock files |
| 32 | ibb-files := $(foreach file,$(cbfs-files), \ |
| 33 | $(if $(shell echo '$(call extract_nth,7,$(file))'|grep -- --ibb), \ |
| 34 | $(call extract_nth,2,$(file)),)) |
| 35 | |
| 36 | ibb-files += bootblock |
| 37 | |
| 38 | INTERMEDIATE+=add_ibb_fit |
| 39 | add_ibb_fit: $(obj)/coreboot.pre $(IFITTOOL) |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 40 | $(foreach file, $(ibb-files), $(shell $(IFITTOOL) -f $< -a -n $(file) -t 7 \ |
| 41 | -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -r COREBOOT)) true |
Patrick Rudolph | d9c799c | 2019-02-19 10:57:16 +0100 | [diff] [blame] | 42 | |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 43 | endif # CPU_INTEL_FIRMWARE_INTERFACE_TABLE |
| 44 | |
| 45 | endif # INTEL_TXT |