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 <[email protected]>
> ---
>  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

Attachment: signature.asc
Description: PGP signature

Reply via email to