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