blob: b02cebc8bff991f31644e5bc0b9f19ab698757bf [file] [log] [blame]
Martin Roth9231f0b2022-10-28 22:39:23 -06001## SPDX-License-Identifier: GPL-2.0-only
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -07002ifeq ($(CONFIG_SOC_INTEL_ELKHARTLAKE),y)
3
4subdirs-y += romstage
5subdirs-y += ../../../cpu/intel/microcode
6subdirs-y += ../../../cpu/intel/turbo
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -07007
8# all (bootblock, verstage, romstage, postcar, ramstage)
9all-y += gspi.c
10all-y += i2c.c
11all-y += pmutil.c
12all-y += spi.c
13all-y += uart.c
14
15bootblock-y += bootblock/bootblock.c
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070016bootblock-y += bootblock/pch.c
17bootblock-y += bootblock/report_platform.c
18bootblock-y += espi.c
19bootblock-y += gpio.c
20bootblock-y += p2sb.c
21
22romstage-y += espi.c
23romstage-y += gpio.c
24romstage-y += meminit.c
25romstage-y += reset.c
26
27ramstage-y += acpi.c
28ramstage-y += chip.c
29ramstage-y += cpu.c
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070030ramstage-y += espi.c
31ramstage-y += finalize.c
32ramstage-y += fsp_params.c
33ramstage-y += gpio.c
34ramstage-y += lockdown.c
35ramstage-y += p2sb.c
36ramstage-y += pmc.c
37ramstage-y += reset.c
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070038ramstage-y += systemagent.c
39ramstage-y += sd.c
Mario Scheithauereda66c32022-04-26 13:50:52 +020040ramstage-$(CONFIG_EHL_TSN_DRIVER) += tsn_gbe.c
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070041
42smm-y += gpio.c
43smm-y += p2sb.c
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070044smm-y += pmutil.c
45smm-y += smihandler.c
46smm-y += uart.c
47
48verstage-y += gpio.c
49
50CPPFLAGS_common += -I$(src)/soc/intel/elkhartlake
51CPPFLAGS_common += -I$(src)/soc/intel/elkhartlake/include
52
Arthur Heymansed8081c2021-12-11 14:23:31 +010053# B0 stepping
54cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-96-01
Lean Sheng Tan5cd75792021-06-09 13:58:12 -070055cbfs-files-$(CONFIG_ADD_PSE_IMAGE_TO_CBFS) += pse.bin
56pse.bin-file := $(CONFIG_PSE_IMAGE_FILE)
57pse.bin-type := raw
58pse.bin-compression := lzma
59
60# Add a build time check if the PSE file size fits
61ifeq ($(CONFIG_ADD_PSE_IMAGE_TO_CBFS),y)
62ifeq ($(call int-gt,\
63 $(call file-size,$(CONFIG_PSE_IMAGE_FILE))\
64 $(shell printf "%d" $(call int-shift-left, $(CONFIG_PSE_FW_FILE_SIZE_KIB) 10))), 1)
65$(error PSE binary larger than CONFIG_PSE_FW_FILE_SIZE_KIB.)
66endif
67endif # CONFIG_ADD_PSE_IMAGE_TO_CBFS
Arthur Heymansed8081c2021-12-11 14:23:31 +010068
Tan, Lean Sheng05dfe312020-08-25 20:40:17 -070069endif