2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2014-11-21 22:51:33 +00:00
|
|
|
|
2015-08-04 18:33:46 +00:00
|
|
|
ifeq ($(CONFIG_EFI_APP),)
|
2017-01-16 14:03:48 +00:00
|
|
|
ifdef CONFIG_$(SPL_)X86_64
|
|
|
|
head-y := arch/x86/cpu/start64.o
|
|
|
|
else
|
2019-04-26 03:58:52 +00:00
|
|
|
ifeq ($(CONFIG_$(SPL_TPL_)X86_16BIT_INIT),y)
|
2014-11-21 22:51:33 +00:00
|
|
|
head-y := arch/x86/cpu/start.o
|
2019-04-26 03:58:52 +00:00
|
|
|
else
|
|
|
|
ifndef CONFIG_SPL
|
|
|
|
head-y := arch/x86/cpu/start.o
|
|
|
|
else
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
head-y = arch/x86/cpu/start_from_tpl.o
|
|
|
|
else
|
|
|
|
head-y = arch/x86/cpu/start_from_spl.o
|
|
|
|
endif
|
|
|
|
endif
|
2015-08-04 18:33:46 +00:00
|
|
|
endif
|
2017-01-16 14:03:48 +00:00
|
|
|
endif
|
2019-04-26 03:58:52 +00:00
|
|
|
endif # EFI
|
2017-01-16 14:03:48 +00:00
|
|
|
|
2019-04-26 03:58:53 +00:00
|
|
|
head-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += arch/x86/cpu/start16.o
|
|
|
|
head-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += arch/x86/cpu/resetvec.o
|
2014-11-21 22:51:33 +00:00
|
|
|
|
|
|
|
libs-y += arch/x86/cpu/
|
|
|
|
libs-y += arch/x86/lib/
|