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 <[email protected]> > --- > 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
signature.asc
Description: PGP signature

