Merge tag 'u-boot-stm32-20211110' of https://source.denx.de/u-boot/custodians/u-boot-stm
[platform/kernel/u-boot.git] / arch / x86 / cpu / intel_common / Makefile
1 # SPDX-License-Identifier: GPL-2.0+
2 #
3 # Copyright (c) 2016 Google, Inc
4
5 obj-$(CONFIG_INTEL_ACPIGEN) += acpi.o
6
7 ifdef CONFIG_HAVE_MRC
8 obj-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += car.o
9 obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += me_status.o
10 obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += report_platform.o
11 obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += mrc.o
12 endif
13
14 ifndef CONFIG_SPL_BUILD
15 obj-$(CONFIG_INTEL_GMA_ACPI) += intel_opregion.o
16 endif
17
18 ifdef CONFIG_INTEL_CAR_CQOS
19 obj-$(CONFIG_TPL_BUILD) += car2.o
20 ifndef CONFIG_SPL_BUILD
21 obj-y += car2_uninit.o
22 endif
23 endif
24
25 obj-y += cpu.o
26 obj-y += fast_spi.o
27 obj-y += lpc.o
28 obj-y += lpss.o
29 obj-$(CONFIG_$(SPL_)INTEL_GENERIC_WIFI) += generic_wifi.o
30 ifndef CONFIG_EFI_APP
31 obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += microcode.o
32 ifndef CONFIG_$(SPL_)X86_64
33 obj-y += microcode.o
34 endif
35 endif
36 obj-y += pch.o
37 obj-$(CONFIG_HAVE_ITSS) += itss.o
38 obj-$(CONFIG_HAVE_P2SB) += p2sb.o
39
40 ifdef CONFIG_SPL
41 ifndef CONFIG_SPL_BUILD
42 ifndef CONFIG_SYS_COREBOOT
43 obj-y += cpu_from_spl.o
44 endif
45 endif
46 endif