Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Daniel Schwierzeck | e19db55 | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 2 | |
Ben Stoltz | 3dcdd17 | 2015-08-04 12:33:46 -0600 | [diff] [blame] | 3 | ifeq ($(CONFIG_EFI_APP),) |
Simon Glass | dca9220 | 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 | 051c31b | 2019-04-25 21:58:52 -0600 | [diff] [blame] | 7 | ifeq ($(CONFIG_$(SPL_TPL_)X86_16BIT_INIT),y) |
Daniel Schwierzeck | e19db55 | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 8 | head-y := arch/x86/cpu/start.o |
Simon Glass | 051c31b | 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 |
Ben Stoltz | 3dcdd17 | 2015-08-04 12:33:46 -0600 | [diff] [blame] | 17 | endif |
Simon Glass | dca9220 | 2017-01-16 07:03:48 -0700 | [diff] [blame] | 18 | endif |
Simon Glass | 051c31b | 2019-04-25 21:58:52 -0600 | [diff] [blame] | 19 | endif |
| 20 | endif |
| 21 | endif # EFI |
Simon Glass | dca9220 | 2017-01-16 07:03:48 -0700 | [diff] [blame] | 22 | |
Simon Glass | d68574a | 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 | e19db55 | 2014-11-21 23:51:33 +0100 | [diff] [blame] | 25 | |
| 26 | libs-y += arch/x86/cpu/ |
| 27 | libs-y += arch/x86/lib/ |