[PATCH v3] Add make feature support for SoCFPGA Handoff

Tom Rini trini at konsulko.com
Mon Nov 3 23:33:46 CET 2025


On Tue, Nov 04, 2025 at 06:28:40AM +0800, Brian Sune wrote:
> Introduce socfpga_gen5_handoff_prepare target in U-Boot Makefile
> Automatically detects Altera/Intel SoCFPGA boards from .config
> Checks for presence of hps_isw_handoff folder and .hiof files
> Runs BSP generator script tools/cv_bsp_generator/cv_bsp_generator.py 
> if files exist.
> Non-blocking: prepare continues even if handoff folder or files are missing
> 
> Signed-off-by: Brian Sune <briansune at gmail.com>
> ---
>  Makefile | 41 +++++++++++++++++++++++++++++++++++++++--
>  1 file changed, 39 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 750f8a84b1f..32568a6c477 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -2158,7 +2158,7 @@ scripts: scripts_basic scripts_dtc
>  # archprepare is used in arch Makefiles and when processed asm symlink,
>  # version.h and scripts_basic is processed / created.
>  
> -PHONY += prepare archprepare prepare1 prepare3
> +PHONY += prepare archprepare prepare1 prepare3 socfpga_g5_hanoff_prepare
>  
>  # prepare3 is used to check if we are building in a separate output directory,
>  # and if so do:
> @@ -2190,8 +2190,45 @@ archprepare: prepare1 scripts
>  prepare0: archprepare
>  	$(Q)$(MAKE) $(build)=.
>  
> +# Intel-Altera SoCFPGA GEN5 prepare handoff file conversion
> +socfpga_g5_hanoff_prepare:
> +	@VENDOR=$$(grep -E '^CONFIG_SYS_VENDOR=' .config | cut -d'"' -f2); \

This won't work with separate object directories. Please give things a
spin with "make O=/tmp/somedir". It also looks like it's going to impact
every board, and either fail or add some build time? Make sure both say
"sandbox" and "qemu_arm" both build at least, if not a full CI run.
Thanks!

-- 
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/20251103/c935bfa6/attachment.sig>


More information about the U-Boot mailing list