[PATCH 04/16] board: ti: Exclude cape detection from XPL builds
Tom Rini
trini at konsulko.com
Fri Oct 3 22:37:46 CEST 2025
On Fri, Oct 03, 2025 at 06:33:44PM +0200, Kory Maincent wrote:
> Disable cape detection functionality in XPL (eXtended Program Loader)
> images to reduce size and complexity in the early boot stage.
>
> Signed-off-by: Kory Maincent <kory.maincent at bootlin.com>
> ---
> board/ti/common/Makefile | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/board/ti/common/Makefile b/board/ti/common/Makefile
> index caf6b9fa8c1..ec8d314c332 100644
> --- a/board/ti/common/Makefile
> +++ b/board/ti/common/Makefile
> @@ -2,6 +2,8 @@
> # Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/
>
> obj-${CONFIG_TI_I2C_BOARD_DETECT} += board_detect.o
> +ifndef CONFIG_XPL_BUILD
> obj-${CONFIG_CMD_EXTENSION} += cape_detect.o
> +endif
> obj-${CONFIG_OF_LIBFDT} += fdt_ops.o
> obj-${CONFIG_ARCH_K3} += k3-ddr.o
Either here, or maybe later in the series when removing then-legacy
code, this should use one of the other non-CMD options and if needed,
instead of gating with checking for CONFIG_XPL_BUILD,
obj-$(CONFIG_$(PHASE_)FOO) will make things easier in a future where we
do need to handle extensions in some xPL phase.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20251003/5f0f2b3c/attachment.sig>
More information about the U-Boot
mailing list