Patrick Rudolph | 5fffb5e | 2019-07-25 11:55:30 +0200 | [diff] [blame] | 1 | ifeq ($(CONFIG_INTEL_TXT),y) |
| 2 | |
Angel Pons | 6c49f40 | 2020-08-28 02:02:00 +0200 | [diff] [blame] | 3 | romstage-y += romstage.c |
Angel Pons | 5725ee4 | 2020-10-21 00:23:29 +0200 | [diff] [blame] | 4 | romstage-y += getsec_sclean.S |
Angel Pons | 6c49f40 | 2020-08-28 02:02:00 +0200 | [diff] [blame] | 5 | romstage-y += getsec.c |
Angel Pons | 5725ee4 | 2020-10-21 00:23:29 +0200 | [diff] [blame] | 6 | |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 7 | romstage-y += common.c |
| 8 | romstage-$(CONFIG_INTEL_TXT_LOGGING) += logging.c |
| 9 | |
| 10 | ramstage-y += common.c |
| 11 | ramstage-y += getsec.c |
| 12 | ramstage-y += getsec_enteraccs.S |
| 13 | ramstage-y += ramstage.c |
| 14 | ramstage-$(CONFIG_INTEL_TXT_LOGGING) += logging.c |
| 15 | |
Arthur Heymans | ccb1119 | 2020-10-15 11:14:15 +0200 | [diff] [blame] | 16 | cbfs-files-y += $(CONFIG_INTEL_TXT_CBFS_BIOS_ACM) |
| 17 | $(CONFIG_INTEL_TXT_CBFS_BIOS_ACM)-file := $(CONFIG_INTEL_TXT_BIOSACM_FILE) |
| 18 | $(CONFIG_INTEL_TXT_CBFS_BIOS_ACM)-type := raw |
| 19 | $(CONFIG_INTEL_TXT_CBFS_BIOS_ACM)-align := $(CONFIG_INTEL_TXT_BIOSACM_ALIGNMENT) |
Patrick Rudolph | 5fffb5e | 2019-07-25 11:55:30 +0200 | [diff] [blame] | 20 | |
| 21 | ifneq ($(CONFIG_INTEL_TXT_SINITACM_FILE),"") |
Arthur Heymans | ccb1119 | 2020-10-15 11:14:15 +0200 | [diff] [blame] | 22 | cbfs-files-y += $(CONFIG_INTEL_TXT_CBFS_SINIT_ACM) |
| 23 | $(CONFIG_INTEL_TXT_CBFS_SINIT_ACM)-file := $(CONFIG_INTEL_TXT_SINITACM_FILE) |
| 24 | $(CONFIG_INTEL_TXT_CBFS_SINIT_ACM)-type := raw |
| 25 | $(CONFIG_INTEL_TXT_CBFS_SINIT_ACM)-align := 0x10 |
| 26 | $(CONFIG_INTEL_TXT_CBFS_SINIT_ACM)-compression := lzma |
Patrick Rudolph | 5fffb5e | 2019-07-25 11:55:30 +0200 | [diff] [blame] | 27 | endif |
| 28 | |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 29 | ifeq ($(CONFIG_CPU_INTEL_FIRMWARE_INTERFACE_TABLE),y) |
| 30 | |
Patrick Georgi | 2cc5bcb | 2021-01-13 09:15:07 +0100 | [diff] [blame] | 31 | $(call add_intermediate, add_acm_fit, $(IFITTOOL)) |
Arthur Heymans | ccb1119 | 2020-10-15 11:14:15 +0200 | [diff] [blame] | 32 | $(IFITTOOL) -r COREBOOT -a -n $(CONFIG_INTEL_TXT_CBFS_BIOS_ACM) -t 2 \ |
Elyes HAOUAS | 388aaf7 | 2021-02-09 14:37:21 +0100 | [diff] [blame] | 33 | -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -f $< |
Patrick Rudolph | 5fffb5e | 2019-07-25 11:55:30 +0200 | [diff] [blame] | 34 | |
Arthur Heymans | 94fe086 | 2020-10-15 13:57:52 +0200 | [diff] [blame] | 35 | # CBnT does not use FIT for IBB |
| 36 | ifneq ($(CONFIG_INTEL_CBNT_SUPPORT),y) |
Patrick Rudolph | d9c799c | 2019-02-19 10:57:16 +0100 | [diff] [blame] | 37 | # Initial BootBlock files |
| 38 | ibb-files := $(foreach file,$(cbfs-files), \ |
Elyes HAOUAS | 388aaf7 | 2021-02-09 14:37:21 +0100 | [diff] [blame] | 39 | $(if $(shell echo '$(call extract_nth,7,$(file))'|grep -- --ibb), \ |
| 40 | $(call extract_nth,2,$(file)),)) |
Patrick Rudolph | d9c799c | 2019-02-19 10:57:16 +0100 | [diff] [blame] | 41 | |
| 42 | ibb-files += bootblock |
| 43 | |
Patrick Georgi | 2cc5bcb | 2021-01-13 09:15:07 +0100 | [diff] [blame] | 44 | $(call add_intermediate, add_ibb_fit, $(IFITTOOL)) |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 45 | $(foreach file, $(ibb-files), $(shell $(IFITTOOL) -f $< -a -n $(file) -t 7 \ |
Elyes HAOUAS | 388aaf7 | 2021-02-09 14:37:21 +0100 | [diff] [blame] | 46 | -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -r COREBOOT)) true |
Patrick Rudolph | d9c799c | 2019-02-19 10:57:16 +0100 | [diff] [blame] | 47 | |
Arthur Heymans | 94fe086 | 2020-10-15 13:57:52 +0200 | [diff] [blame] | 48 | endif # INTEL_CBNT_SUPPORT |
| 49 | |
Philipp Deppenwiese | 5f9f776 | 2018-11-20 14:22:15 +0100 | [diff] [blame] | 50 | endif # CPU_INTEL_FIRMWARE_INTERFACE_TABLE |
| 51 | |
| 52 | endif # INTEL_TXT |