ec/google/chromeec: Define ACPI_NOTIFY_CROS_EC_MKBP constant
[coreboot.git] / src / soc / intel / baytrail / Makefile.mk
blob281175c9a8daa12963541f168b2b55695fa8a029
1 ## SPDX-License-Identifier: GPL-2.0-only
2 ifeq ($(CONFIG_SOC_INTEL_BAYTRAIL),y)
4 subdirs-y += romstage
5 subdirs-y += ../../../cpu/intel/microcode
6 subdirs-y += ../../../cpu/intel/turbo
7 subdirs-y += ../../../cpu/intel/common
9 all-y += tsc_freq.c
11 bootblock-y += ../../../cpu/intel/car/non-evict/cache_as_ram.S
12 bootblock-y += ../../../cpu/intel/car/bootblock.c
13 bootblock-y += ../../../cpu/x86/early_reset.S
14 bootblock-y += bootblock/bootblock.c
16 romstage-y += iosf.c
17 romstage-y += memmap.c
18 romstage-y += pmutil.c
20 postcar-y += iosf.c
21 postcar-y += memmap.c
23 ramstage-y += acpi.c
24 ramstage-y += chip.c
25 ramstage-y += cpu.c
26 ramstage-y += dptf.c
27 ramstage-y += ehci.c
28 ramstage-y += emmc.c
29 ramstage-y += fadt.c
30 ramstage-y += gfx.c
31 ramstage-y += gpio.c
32 ramstage-y += hda.c
33 ramstage-y += iosf.c
34 ramstage-y += lpe.c
35 ramstage-y += lpss.c
36 ramstage-y += memmap.c
37 ramstage-y += northcluster.c
38 ramstage-y += pcie.c
39 ramstage-y += perf_power.c
40 ramstage-y += pmutil.c
41 ramstage-y += ramstage.c
42 ramstage-y += sata.c
43 ramstage-y += scc.c
44 ramstage-y += sd.c
45 ramstage-y += smm.c
46 ramstage-y += southcluster.c
47 ramstage-y += xhci.c
48 ramstage-$(CONFIG_ELOG) += elog.c
49 ramstage-$(CONFIG_VGA_ROM_RUN) += int15.c
51 ifeq ($(CONFIG_HAVE_REFCODE_BLOB),y)
52 ramstage-y += refcode.c
53 else
54 ramstage-y += modphy_table.c refcode_native.c
55 endif
57 smm-y += iosf.c
58 smm-y += pmutil.c
59 smm-y += smihandler.c
60 smm-y += tsc_freq.c
62 # Remove as ramstage gets fleshed out
63 ramstage-y += placeholders.c
65 postcar-y += ../../../cpu/intel/car/non-evict/exit_car.S
67 cpu_microcode_bins += 3rdparty/blobs/soc/intel/baytrail/microcode.bin \
68 3rdparty/intel-microcode/intel-ucode/06-37-09
70 CPPFLAGS_common += -Isrc/soc/intel/baytrail/include
72 ifeq ($(CONFIG_HAVE_MRC),y)
74 # Bay Trail MRC is an ELF file. Determine the entry address and first loadable
75 # section offset in the file. Subtract the offset from the entry address to
76 # determine the final location.
77 mrcelfoffset = $(shell $(READELF_x86_32) -S -W $(CONFIG_MRC_FILE) | sed -e 's/\[ /[0/' | awk '$$3 ~ /PROGBITS/ { print "0x"$$5; exit }' )
78 mrcelfentry = $(shell $(READELF_x86_32) -h -W $(CONFIG_MRC_FILE) | grep 'Entry point address' | awk '{print $$NF }')
80 # Add memory reference code blob.
81 cbfs-files-y += mrc.bin
82 mrc.bin-file := $(call strip_quotes,$(CONFIG_MRC_FILE))
83 mrc.bin-position := $(shell printf "0x%x" $$(( $(mrcelfentry) - $(mrcelfoffset) )) )
84 mrc.bin-type := mrc
86 endif
87 endif