1# SPDX-License-Identifier: GPL-2.0+
2
3ifeq ($(CONFIG_EFI_APP),)
4ifdef CONFIG_$(SPL_)X86_64
5head-y := arch/x86/cpu/start64.o
6else
7ifeq ($(CONFIG_$(SPL_TPL_)X86_16BIT_INIT),y)
8head-y := arch/x86/cpu/start.o
9else
10ifndef CONFIG_SPL
11head-y := arch/x86/cpu/start.o
12else
13ifdef CONFIG_SPL_BUILD
14head-y	= arch/x86/cpu/start_from_tpl.o
15else
16head-y	= arch/x86/cpu/start_from_spl.o
17endif
18endif
19endif
20endif
21endif # EFI
22
23head-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += arch/x86/cpu/start16.o
24head-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += arch/x86/cpu/resetvec.o
25
26libs-y += arch/x86/cpu/
27libs-y += arch/x86/lib/
28