blob: fd409b9f7207698d98f378c649d0543ffa24ec3e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Daniel Schwierzeck17def7d2014-11-21 23:51:33 +01002
Ben Stoltzab76a472015-08-04 12:33:46 -06003ifeq ($(CONFIG_EFI_APP),)
Simon Glass86adc2e2024-09-29 19:49:53 -06004ifdef CONFIG_$(XPL_)X86_64
Simon Glass8157b332017-01-16 07:03:48 -07005head-y := arch/x86/cpu/start64.o
6else
Simon Glass4cafa212024-09-29 19:49:54 -06007ifeq ($(CONFIG_$(PHASE_)X86_16BIT_INIT),y)
Daniel Schwierzeck17def7d2014-11-21 23:51:33 +01008head-y := arch/x86/cpu/start.o
Simon Glass75659ac2019-04-25 21:58:52 -06009else
10ifndef CONFIG_SPL
11head-y := arch/x86/cpu/start.o
12else
Simon Glass85ed77d2024-09-29 19:49:46 -060013ifdef CONFIG_XPL_BUILD
Simon Glass75659ac2019-04-25 21:58:52 -060014head-y = arch/x86/cpu/start_from_tpl.o
15else
16head-y = arch/x86/cpu/start_from_spl.o
17endif
18endif
Ben Stoltzab76a472015-08-04 12:33:46 -060019endif
Simon Glass8157b332017-01-16 07:03:48 -070020endif
Simon Glass75659ac2019-04-25 21:58:52 -060021endif # EFI
Simon Glass8157b332017-01-16 07:03:48 -070022
Simon Glass4cafa212024-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 Schwierzeck17def7d2014-11-21 23:51:33 +010025
26libs-y += arch/x86/cpu/
27libs-y += arch/x86/lib/