boot: global: Use BOOT to pull in boot functions

Each arch has its own set of functions related to booting. Rather than
including them for each enabled command, have a single rule to include
them, using the new CONFIG_BOOT

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-05-31 11:11:07 +01:00
parent 2ffe3ef03d
commit cba7622d29
12 changed files with 15 additions and 16 deletions

View File

@@ -12,6 +12,6 @@ obj-y += reset.o
obj-y += ints_low.o
obj-y += init_helpers.o
obj-$(CONFIG_CMD_BOOTM) += bootm.o
obj-$(CONFIG_BOOT) += bootm.o
lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _millicodethunk.o libgcc2.o

View File

@@ -36,9 +36,9 @@ obj-$(CONFIG_EFI_APP) += $(EFI_CRT0) $(EFI_RELOC)
obj-$(CONFIG_CPU_V7M) += cmd_boot.o
obj-$(CONFIG_OF_LIBFDT) += bootm-fdt.o
obj-$(CONFIG_CMD_BOOTI) += bootm.o image.o
obj-$(CONFIG_CMD_BOOTM) += bootm.o
obj-$(CONFIG_CMD_BOOTZ) += bootm.o zimage.o
obj-$(CONFIG_BOOT) += bootm.o
obj-$(CONFIG_CMD_BOOTI) += image.o
obj-$(CONFIG_CMD_BOOTZ) += zimage.o
else
obj-$(CONFIG_$(PHASE_)FRAMEWORK) += spl.o
ifdef CONFIG_SPL_FRAMEWORK

View File

@@ -8,7 +8,7 @@
lib-$(CONFIG_USE_PRIVATE_LIBGCC) += lshrdi3.o muldi3.o ashldi3.o ashrdi3.o
obj-y += bdinfo.o
obj-$(CONFIG_CMD_BOOTM) += bootm.o
obj-$(CONFIG_BOOT) += bootm.o
obj-y += cache.o
obj-y += interrupts.o
obj-y += time.o

View File

@@ -3,6 +3,6 @@
# (C) Copyright 2003-2006
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
obj-$(CONFIG_CMD_BOOTM) += bootm.o
obj-$(CONFIG_BOOT) += bootm.o
obj-$(CONFIG_CMD_BDI) += bdinfo.o
obj-y += muldi3.o

View File

@@ -10,7 +10,7 @@ obj-y += reloc.o
obj-y += stack.o
obj-y += traps.o
obj-$(CONFIG_CMD_BOOTM) += bootm.o
obj-$(CONFIG_BOOT) += bootm.o
obj-$(CONFIG_CMD_GO) += boot.o
obj-$(CONFIG_XPL_BUILD) += spl.o

View File

@@ -4,5 +4,5 @@
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
obj-y += cache.o
obj-$(CONFIG_CMD_BOOTM) += bootm.o
obj-$(CONFIG_BOOT) += bootm.o
obj-y += libgcc.o

View File

@@ -34,7 +34,7 @@ obj-y += ticks.o
endif
obj-y += reloc.o
obj-$(CONFIG_CMD_BOOTM) += bootm.o
obj-$(CONFIG_BOOT) += bootm.o
obj-y += cache.o
obj-y += extable.o
obj-y += interrupts.o

View File

@@ -6,8 +6,8 @@
# Copyright (C) 2017 Andes Technology Corporation
# Rick Chen, Andes Technology Corporation <rick@andestech.com>
obj-$(CONFIG_CMD_BOOTM) += bootm.o
obj-$(CONFIG_CMD_BOOTI) += bootm.o image.o
obj-$(CONFIG_BOOT) += bootm.o
obj-$(CONFIG_CMD_BOOTI) += image.o
obj-$(CONFIG_CMD_GO) += boot.o
obj-y += cache.o
obj-$(CONFIG_SIFIVE_CACHE) += sifive_cache.o

View File

@@ -7,6 +7,5 @@
obj-y += fdt_fixup.o interrupts.o
obj-$(CONFIG_PCI) += pci_io.o
obj-$(CONFIG_CMD_BOOTM) += bootm.o
obj-$(CONFIG_CMD_BOOTZ) += bootm.o
obj-$(CONFIG_BOOT) += bootm.o
obj-$(CONFIG_$(PHASE_)ACPIGEN) += acpi_table.o

View File

@@ -6,7 +6,7 @@
extra-y += start.o
obj-y += board.o
obj-$(CONFIG_CMD_BOOTM) += bootm.o
obj-$(CONFIG_BOOT) += bootm.o
obj-y += time.o
obj-$(CONFIG_CMD_SH_ZIMAGEBOOT) += zimageboot.o

View File

@@ -16,7 +16,7 @@ obj-$(CONFIG_X86_32BIT_INIT) += string.o
endif
ifndef CONFIG_XPL_BUILD
obj-$(CONFIG_CMD_BOOTM) += bootm.o
obj-$(CONFIG_BOOT) += bootm.o
endif
obj-y += cmd_boot.o
obj-$(CONFIG_$(PHASE_)COREBOOT_SYSINFO) += coreboot/

View File

@@ -3,6 +3,6 @@
# (C) Copyright 2007 - 2013 Tensilica Inc.
# (C) Copyright 2014 - 2016 Cadence Design Systems Inc.
obj-$(CONFIG_CMD_BOOTM) += bootm.o
obj-$(CONFIG_BOOT) += bootm.o
obj-y += cache.o misc.o relocate.o time.o