blob: fd409b9f7207698d98f378c649d0543ffa24ec3e [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 Glassc46760d2024-09-29 19:49:53 -06004ifdef CONFIG_$(XPL_)X86_64
Simon Glassdca92202017-01-16 07:03:48 -07005head-y := arch/x86/cpu/start64.o
6else
Simon Glass5c10c8b2024-09-29 19:49:54 -06007ifeq ($(CONFIG_$(PHASE_)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
Simon Glassbef9fdb2024-09-29 19:49:46 -060013ifdef CONFIG_XPL_BUILD
Simon Glass051c31b2019-04-25 21:58:52 -060014head-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 Glass5c10c8b2024-09-29 19:49:54 -060023head-$(CONFIG_$(PHASE_)X86_16BIT_INIT) += arch/x86/cpu/start16.o
24head-$(CONFIG_$(PHASE_)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/