Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 2 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 3 | # (C) Copyright 2002-2006 |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 5 | |
Simon Glass | 3dfe451 | 2017-01-16 07:04:09 -0700 | [diff] [blame] | 6 | ifndef CONFIG_X86_64 |
Simon Glass | b2978d3 | 2014-11-14 20:56:32 -0700 | [diff] [blame] | 7 | obj-y += bios.o |
| 8 | obj-y += bios_asm.o |
| 9 | obj-y += bios_interrupts.o |
Simon Glass | 3dfe451 | 2017-01-16 07:04:09 -0700 | [diff] [blame] | 10 | endif |
Simon Glass | 602b98f | 2017-01-16 07:04:13 -0700 | [diff] [blame] | 11 | ifndef CONFIG_SPL_BUILD |
Masahiro Yamada | aa96dd1 | 2013-10-21 11:53:34 +0900 | [diff] [blame] | 12 | obj-$(CONFIG_CMD_BOOTM) += bootm.o |
Simon Glass | 602b98f | 2017-01-16 07:04:13 -0700 | [diff] [blame] | 13 | endif |
Masahiro Yamada | aa96dd1 | 2013-10-21 11:53:34 +0900 | [diff] [blame] | 14 | obj-y += cmd_boot.o |
Bin Meng | e31a79a | 2016-05-11 07:44:58 -0700 | [diff] [blame] | 15 | obj-$(CONFIG_SEABIOS) += coreboot_table.o |
Bin Meng | 39f8b08 | 2017-04-21 07:24:38 -0700 | [diff] [blame] | 16 | obj-y += early_cmos.o |
Simon Glass | d2269f2 | 2015-08-04 12:34:01 -0600 | [diff] [blame] | 17 | obj-$(CONFIG_EFI) += efi/ |
Bin Meng | a489963 | 2015-10-07 20:19:10 -0700 | [diff] [blame] | 18 | obj-y += e820.o |
Masahiro Yamada | aa96dd1 | 2013-10-21 11:53:34 +0900 | [diff] [blame] | 19 | obj-y += init_helpers.o |
| 20 | obj-y += interrupts.o |
Simon Glass | a5caa37 | 2015-03-26 09:29:28 -0600 | [diff] [blame] | 21 | obj-y += lpc-uclass.o |
Bin Meng | f91cf6b | 2015-06-23 12:18:51 +0800 | [diff] [blame] | 22 | obj-y += mpspec.o |
Bin Meng | 21666cf | 2015-10-11 21:37:36 -0700 | [diff] [blame] | 23 | obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o |
Simon Glass | 29ce97e | 2016-01-17 16:11:14 -0700 | [diff] [blame] | 24 | obj-y += northbridge-uclass.o |
Bin Meng | b29a08c | 2015-10-22 19:13:30 -0700 | [diff] [blame] | 25 | obj-$(CONFIG_I8259_PIC) += i8259.o |
| 26 | obj-$(CONFIG_I8254_TIMER) += i8254.o |
Simon Glass | 11cd631 | 2016-03-11 22:07:13 -0700 | [diff] [blame] | 27 | obj-y += pinctrl_ich6.o |
Bin Meng | 45236ad | 2015-04-24 18:10:05 +0800 | [diff] [blame] | 28 | obj-y += pirq_routing.o |
Masahiro Yamada | aa96dd1 | 2013-10-21 11:53:34 +0900 | [diff] [blame] | 29 | obj-y += relocate.o |
| 30 | obj-y += physmem.o |
Andy Shevchenko | 7d2c201 | 2017-04-01 16:21:34 +0300 | [diff] [blame] | 31 | obj-$(CONFIG_INTEL_MID) += pmu.o |
Simon Glass | 268eefd | 2014-11-12 22:42:28 -0700 | [diff] [blame] | 32 | obj-$(CONFIG_X86_RAMTEST) += ramtest.o |
Felipe Balbi | ee2e85f | 2017-04-01 16:21:33 +0300 | [diff] [blame] | 33 | obj-$(CONFIG_INTEL_MID) += scu.o |
Simon Glass | cdfe696 | 2016-09-25 15:27:35 -0600 | [diff] [blame] | 34 | obj-y += sections.o |
Simon Glass | 07e922a | 2015-04-28 20:25:10 -0600 | [diff] [blame] | 35 | obj-y += sfi.o |
Masahiro Yamada | aa96dd1 | 2013-10-21 11:53:34 +0900 | [diff] [blame] | 36 | obj-y += string.o |
Bin Meng | 710d215 | 2017-04-21 07:24:37 -0700 | [diff] [blame] | 37 | obj-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.o |
Miao Yan | 75e27da | 2016-05-22 19:37:10 -0700 | [diff] [blame] | 38 | ifndef CONFIG_QEMU |
Saket Sinha | 331141a | 2015-08-22 12:20:55 +0530 | [diff] [blame] | 39 | obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o |
Miao Yan | 3b68c52 | 2016-01-20 01:57:06 -0800 | [diff] [blame] | 40 | endif |
Bin Meng | f17cea6 | 2015-04-24 18:10:04 +0800 | [diff] [blame] | 41 | obj-y += tables.o |
Simon Glass | 602b98f | 2017-01-16 07:04:13 -0700 | [diff] [blame] | 42 | ifndef CONFIG_SPL_BUILD |
Masahiro Yamada | aa96dd1 | 2013-10-21 11:53:34 +0900 | [diff] [blame] | 43 | obj-$(CONFIG_CMD_ZBOOT) += zimage.o |
Simon Glass | 602b98f | 2017-01-16 07:04:13 -0700 | [diff] [blame] | 44 | endif |
Simon Glass | b93abfc | 2015-01-27 22:13:36 -0700 | [diff] [blame] | 45 | obj-$(CONFIG_HAVE_FSP) += fsp/ |
Simon Glass | 030777d | 2017-01-16 07:03:56 -0700 | [diff] [blame] | 46 | obj-$(CONFIG_SPL_BUILD) += spl.o |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 47 | |
Stefan Roese | dfafe7a | 2017-11-29 16:23:31 +0100 | [diff] [blame] | 48 | lib-$(CONFIG_USE_PRIVATE_LIBGCC) += div64.o |
Simon Glass | 6f4b08a | 2016-11-07 08:47:14 -0700 | [diff] [blame] | 49 | |
Simon Glass | 2f1492e | 2017-01-16 07:04:12 -0700 | [diff] [blame] | 50 | ifeq ($(CONFIG_$(SPL_)X86_64),) |
Simon Glass | 6f4b08a | 2016-11-07 08:47:14 -0700 | [diff] [blame] | 51 | obj-$(CONFIG_EFI_APP) += crt0_ia32_efi.o reloc_ia32_efi.o |
Simon Glass | 2f1492e | 2017-01-16 07:04:12 -0700 | [diff] [blame] | 52 | endif |
Simon Glass | 6f4b08a | 2016-11-07 08:47:14 -0700 | [diff] [blame] | 53 | |
| 54 | ifneq ($(CONFIG_EFI_STUB),) |
| 55 | |
| 56 | CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3 |
| 57 | CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar |
| 58 | |
| 59 | # When building for 64-bit we must remove the i386-specific flags |
| 60 | CFLAGS_REMOVE_reloc_x86_64_efi.o += -mregparm=3 -march=i386 -m32 |
| 61 | CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar |
| 62 | |
| 63 | AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32 |
| 64 | AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar |
| 65 | |
| 66 | extra-$(CONFIG_EFI_STUB_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o |
| 67 | extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o |
Simon Glass | 105c936 | 2016-11-07 08:47:15 -0700 | [diff] [blame] | 68 | |
| 69 | endif |
| 70 | |
Heinrich Schuchardt | 3366ff0c | 2018-05-18 19:12:20 +0200 | [diff] [blame] | 71 | ifdef CONFIG_EFI_STUB |
| 72 | |
Simon Glass | 2f1492e | 2017-01-16 07:04:12 -0700 | [diff] [blame] | 73 | ifeq ($(CONFIG_$(SPL_)X86_64),) |
Simon Glass | 105c936 | 2016-11-07 08:47:15 -0700 | [diff] [blame] | 74 | extra-y += $(EFI_CRT0) $(EFI_RELOC) |
Simon Glass | 6f4b08a | 2016-11-07 08:47:14 -0700 | [diff] [blame] | 75 | endif |
Heinrich Schuchardt | 3366ff0c | 2018-05-18 19:12:20 +0200 | [diff] [blame] | 76 | |
| 77 | else |
| 78 | |
| 79 | ifndef CONFIG_SPL_BUILD |
| 80 | ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),) |
| 81 | extra-y += $(EFI_CRT0) $(EFI_RELOC) |
| 82 | endif |
| 83 | endif |
| 84 | |
Simon Glass | 2f1492e | 2017-01-16 07:04:12 -0700 | [diff] [blame] | 85 | endif |