Files
u-boot/arch/powerpc/lib/Makefile
Simon Glass cba7622d29 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>
2025-06-02 13:36:47 -06:00

51 lines
886 B
Makefile

# SPDX-License-Identifier: GPL-2.0+
#
# (C) Copyright 2000-2006
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
## Build a couple of necessary functions into a private libgcc
## if the user asked for it
lib-$(CONFIG_USE_PRIVATE_LIBGCC) += _ashldi3.o _ashrdi3.o _lshrdi3.o
MINIMAL=
ifdef CONFIG_XPL_BUILD
ifndef CONFIG_TPL_BUILD
ifdef CONFIG_SPL_INIT_MINIMAL
MINIMAL=y
endif
endif
endif
obj-y += bdinfo.o
ifdef MINIMAL
obj-y += cache.o time.o
ifndef CONFIG_TIMER
obj-y += ticks.o
endif
else
obj-y += ppcstring.o
obj-y += ppccache.o
ifndef CONFIG_TIMER
obj-y += ticks.o
endif
obj-y += reloc.o
obj-$(CONFIG_BOOT) += bootm.o
obj-y += cache.o
obj-y += extable.o
obj-y += interrupts.o
obj-$(CONFIG_CMD_KGDB) += kgdb.o
obj-y += misc.o
obj-y += stack.o
obj-y += time.o
obj-y += traps.o
endif # not minimal
ifdef CONFIG_XPL_BUILD
obj-$(CONFIG_$(PHASE_)FRAMEWORK) += spl.o
endif