blob: f1afc74fff818e7daf7bebeabd4db42ba0bdeca2 [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 Glass8157b332017-01-16 07:03:48 -07004ifdef CONFIG_$(SPL_)X86_64
5head-y := arch/x86/cpu/start64.o
6else
Simon Glass75659ac2019-04-25 21:58:52 -06007ifeq ($(CONFIG_$(SPL_TPL_)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
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
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 Glass79ef6992019-04-25 21:58:53 -060023head-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += arch/x86/cpu/start16.o
24head-$(CONFIG_$(SPL_TPL_)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/