Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Daniel Schwierzeck | 17def7d | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 2 | |
Ben Stoltz | ab76a47 | 2015-08-04 12:33:46 -0600 | [diff] [blame] | 3 | ifeq ($(CONFIG_EFI_APP),) |
Simon Glass | 8157b33 | 2017-01-16 07:03:48 -0700 | [diff] [blame] | 4 | ifdef CONFIG_$(SPL_)X86_64 |
| 5 | head-y := arch/x86/cpu/start64.o |
| 6 | else |
Simon Glass | 75659ac | 2019-04-25 21:58:52 -0600 | [diff] [blame] | 7 | ifeq ($(CONFIG_$(SPL_TPL_)X86_16BIT_INIT),y) |
Daniel Schwierzeck | 17def7d | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 8 | head-y := arch/x86/cpu/start.o |
Simon Glass | 75659ac | 2019-04-25 21:58:52 -0600 | [diff] [blame] | 9 | else |
| 10 | ifndef CONFIG_SPL |
| 11 | head-y := arch/x86/cpu/start.o |
| 12 | else |
| 13 | ifdef CONFIG_SPL_BUILD |
| 14 | head-y = arch/x86/cpu/start_from_tpl.o |
| 15 | else |
| 16 | head-y = arch/x86/cpu/start_from_spl.o |
| 17 | endif |
| 18 | endif |
Ben Stoltz | ab76a47 | 2015-08-04 12:33:46 -0600 | [diff] [blame] | 19 | endif |
Simon Glass | 8157b33 | 2017-01-16 07:03:48 -0700 | [diff] [blame] | 20 | endif |
Simon Glass | 75659ac | 2019-04-25 21:58:52 -0600 | [diff] [blame] | 21 | endif # EFI |
Simon Glass | 8157b33 | 2017-01-16 07:03:48 -0700 | [diff] [blame] | 22 | |
Simon Glass | 79ef699 | 2019-04-25 21:58:53 -0600 | [diff] [blame] | 23 | head-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += arch/x86/cpu/start16.o |
| 24 | head-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += arch/x86/cpu/resetvec.o |
Daniel Schwierzeck | 17def7d | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 25 | |
| 26 | libs-y += arch/x86/cpu/ |
| 27 | libs-y += arch/x86/lib/ |