drivers/wifi: Remove unnecessary data structure copy
[coreboot2.git] / src / security / intel / txt / Makefile.mk
blobc1fc0c45271d856f5b7b1af2b88b477808987eef
1 ## SPDX-License-Identifier: GPL-2.0-only
3 romstage-$(CONFIG_INTEL_TXT_LIB) += txtlib.c
5 ifeq ($(CONFIG_INTEL_TXT),y)
7 all-y += logging.c
9 romstage-y += romstage.c
10 romstage-y += getsec_sclean.S
11 romstage-y += getsec.c
13 romstage-y += common.c
15 ramstage-y += common.c
16 ramstage-y += getsec.c
17 ramstage-y += getsec_enteraccs.S
18 ramstage-y += ramstage.c
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)
25 ifneq ($(CONFIG_INTEL_TXT_SINITACM_FILE),"")
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
31 endif
33 ifeq ($(CONFIG_CPU_INTEL_FIRMWARE_INTERFACE_TABLE),y)
35 $(call add_intermediate, add_acm_fit, $(IFITTOOL) set_fit_ptr)
36 $(IFITTOOL) -r COREBOOT -a -n $(CONFIG_INTEL_TXT_CBFS_BIOS_ACM) -t 2 \
37 -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -f $<
39 # CBnT does not use FIT for IBB
40 ifneq ($(CONFIG_INTEL_CBNT_SUPPORT),y)
41 # Initial BootBlock files
42 ibb-files := $(foreach file,$(cbfs-files), \
43 $(if $(shell echo '$(call extract_nth,7,$(file))'|grep -- --ibb), \
44 $(call extract_nth,2,$(file)),))
46 ibb-files += bootblock
48 $(call add_intermediate, add_ibb_fit, $(IFITTOOL) set_fit_ptr)
49 $(foreach file, $(ibb-files), $(shell $(IFITTOOL) -f $< -a -n $(file) -t 7 \
50 -s $(CONFIG_CPU_INTEL_NUM_FIT_ENTRIES) -r COREBOOT)) true
52 endif # INTEL_CBNT_SUPPORT
54 endif # CPU_INTEL_FIRMWARE_INTERFACE_TABLE
56 endif # INTEL_TXT