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 | |
Arthur Heymans | ccb1119 | 2020-10-15 11:14:15 +0200 | [diff] [blame] | 12 | cbfs-files-y += $(CONFIG_INTEL_TXT_CBFS_BIOS_ACM) |
| 13 | $(CONFIG_INTEL_TXT_CBFS_BIOS_ACM)-file := $(CONFIG_INTEL_TXT_BIOSACM_FILE) |
| 14 | $(CONFIG_INTEL_TXT_CBFS_BIOS_ACM)-type := raw |
| 15 | $(CONFIG_INTEL_TXT_CBFS_BIOS_ACM)-align := $(CONFIG_INTEL_TXT_BIOSACM_ALIGNMENT) |
Patrick Rudolph | 5fffb5e | 2019-07-25 11:55:30 +0200 | [diff] [blame] | 16 | |
| 17 | ifneq ($(CONFIG_INTEL_TXT_SINITACM_FILE),"") |
Arthur Heymans | ccb1119 | 2020-10-15 11:14:15 +0200 | [diff] [blame] | 18 | cbfs-files-y += $(CONFIG_INTEL_TXT_CBFS_SINIT_ACM) |
| 19 | $(CONFIG_INTEL_TXT_CBFS_SINIT_ACM)-file := $(CONFIG_INTEL_TXT_SINITACM_FILE) |
| 20 | $(CONFIG_INTEL_TXT_CBFS_SINIT_ACM)-type := raw |
| 21 | $(CONFIG_INTEL_TXT_CBFS_SINIT_ACM)-align := 0x10 |
| 22 | $(CONFIG_INTEL_TXT_CBFS_SINIT_ACM)-compression := lzma |
Patrick Rudolph | 5fffb5e | 2019-07-25 11:55:30 +0200 | [diff] [blame] | 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) |
Arthur Heymans | ccb1119 | 2020-10-15 11:14:15 +0200 | [diff] [blame] | 29 | $(IFITTOOL) -r COREBOOT -a -n $(CONFIG_INTEL_TXT_CBFS_BIOS_ACM) -t 2 \ |
| 30 | -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -f $< |
Patrick Rudolph | 5fffb5e | 2019-07-25 11:55:30 +0200 | [diff] [blame] | 31 | |
Patrick Rudolph | d9c799c | 2019-02-19 10:57:16 +0100 | [diff] [blame] | 32 | # Initial BootBlock files |
| 33 | ibb-files := $(foreach file,$(cbfs-files), \ |
| 34 | $(if $(shell echo '$(call extract_nth,7,$(file))'|grep -- --ibb), \ |
| 35 | $(call extract_nth,2,$(file)),)) |
| 36 | |
| 37 | ibb-files += bootblock |
| 38 | |
| 39 | INTERMEDIATE+=add_ibb_fit |
| 40 | add_ibb_fit: $(obj)/coreboot.pre $(IFITTOOL) |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 41 | $(foreach file, $(ibb-files), $(shell $(IFITTOOL) -f $< -a -n $(file) -t 7 \ |
| 42 | -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -r COREBOOT)) true |
Patrick Rudolph | d9c799c | 2019-02-19 10:57:16 +0100 | [diff] [blame] | 43 | |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 44 | endif # CPU_INTEL_FIRMWARE_INTERFACE_TABLE |
| 45 | |
| 46 | endif # INTEL_TXT |