blob: 9fd6cf2d3bb76be56310d654bcaeb2668fd4385a [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Daniel Schwierzecke19db552014-11-21 23:51:33 +01002
Ben Stoltz3dcdd172015-08-04 12:33:46 -06003ifeq ($(CONFIG_EFI_APP),)
Simon Glassdca92202017-01-16 07:03:48 -07004ifdef CONFIG_$(SPL_)X86_64
5head-y := arch/x86/cpu/start64.o
6else
Simon Glass051c31b2019-04-25 21:58:52 -06007ifeq ($(CONFIG_$(SPL_TPL_)X86_16BIT_INIT),y)
Daniel Schwierzecke19db552014-11-21 23:51:33 +01008head-y := arch/x86/cpu/start.o
Simon Glass051c31b2019-04-25 21:58:52 -06009else
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
Ben Stoltz3dcdd172015-08-04 12:33:46 -060017endif
Simon Glassdca92202017-01-16 07:03:48 -070018endif
Simon Glass051c31b2019-04-25 21:58:52 -060019endif
20endif
21endif # EFI
Simon Glassdca92202017-01-16 07:03:48 -070022
Simon Glass972188b2017-01-16 07:03:45 -070023head-$(CONFIG_$(SPL_)X86_16BIT_INIT) += arch/x86/cpu/start16.o
24head-$(CONFIG_$(SPL_)X86_16BIT_INIT) += arch/x86/cpu/resetvec.o
Daniel Schwierzecke19db552014-11-21 23:51:33 +010025
26libs-y += arch/x86/cpu/
27libs-y += arch/x86/lib/