mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / intel / elkhartlake / Makefile.mk
blobb5f5f2ad74378a0e884d22bd5c4999f899136773
1 ## SPDX-License-Identifier: GPL-2.0-only
2 ifeq ($(CONFIG_SOC_INTEL_ELKHARTLAKE),y)
4 subdirs-y += romstage
5 subdirs-y += ../../../cpu/intel/microcode
6 subdirs-y += ../../../cpu/intel/turbo
8 # all (bootblock, verstage, romstage, postcar, ramstage)
9 all-y += gspi.c
10 all-y += i2c.c
11 all-y += pmutil.c
12 all-y += spi.c
13 all-y += uart.c
15 bootblock-y += bootblock/bootblock.c
16 bootblock-y += bootblock/pch.c
17 bootblock-y += bootblock/report_platform.c
18 bootblock-y += espi.c
19 bootblock-y += gpio.c
20 bootblock-y += p2sb.c
22 romstage-y += espi.c
23 romstage-y += gpio.c
24 romstage-y += meminit.c
25 romstage-y += pcie_rp.c
26 romstage-y += reset.c
28 ramstage-y += acpi.c
29 ramstage-y += chip.c
30 ramstage-y += cpu.c
31 ramstage-y += espi.c
32 ramstage-y += finalize.c
33 ramstage-y += fsp_params.c
34 ramstage-y += gpio.c
35 ramstage-y += lockdown.c
36 ramstage-y += p2sb.c
37 ramstage-y += pcie_rp.c
38 ramstage-y += pmc.c
39 ramstage-y += reset.c
40 ramstage-y += systemagent.c
41 ramstage-y += sd.c
42 ramstage-$(CONFIG_EHL_TSN_DRIVER) += tsn_gbe.c
44 smm-y += gpio.c
45 smm-y += p2sb.c
46 smm-y += pmutil.c
47 smm-y += smihandler.c
48 smm-y += uart.c
50 verstage-y += gpio.c
52 CPPFLAGS_common += -I$(src)/soc/intel/elkhartlake
53 CPPFLAGS_common += -I$(src)/soc/intel/elkhartlake/include
55 # B0 stepping
56 cpu_microcode_bins += 3rdparty/intel-microcode/intel-ucode/06-96-01
57 cbfs-files-$(CONFIG_ADD_PSE_IMAGE_TO_CBFS) += pse.bin
58 pse.bin-file := $(CONFIG_PSE_IMAGE_FILE)
59 pse.bin-type := raw
60 pse.bin-compression := lzma
62 # Add a build time check if the PSE file size fits
63 ifeq ($(CONFIG_ADD_PSE_IMAGE_TO_CBFS),y)
64 ifeq ($(call int-gt,\
65 $(call file-size,$(CONFIG_PSE_IMAGE_FILE))\
66 $(shell printf "%d" $(call int-shift-left, $(CONFIG_PSE_FW_FILE_SIZE_KIB) 10))), 1)
67 $(error PSE binary larger than CONFIG_PSE_FW_FILE_SIZE_KIB.)
68 endif
69 endif # CONFIG_ADD_PSE_IMAGE_TO_CBFS
71 endif