[PATCH v6] Add optimized Makefile support for SoCFPGA handoff
Tom Rini
trini at konsulko.com
Tue Nov 4 18:51:23 CET 2025
On Tue, Nov 04, 2025 at 09:00:03AM +0800, Brian Sune wrote:
> Add optimized Makefile support for SoCFPGA handoff
>
> - Introduce socfpga_g5_hanoff_prepare target in U-Boot Makefile
> - Detects Altera/Intel SoCFPGA boards from .config
> - Combines vendor/board extraction into a single shell call
> - Checks for hps_isw_handoff folder and .hiof files
> - Uses ls -d instead of find for faster folder detection
> - Runs BSP generator script only if files exist
> - Non-blocking: continues if handoff folder or files are missing
> - HANDOFF_PATH user define allows overriding auto-detected folder
> - Minimizes subshells and other slow constructs for faster CI
>
> Signed-off-by: Brian Sune <briansune at gmail.com>
> ---
> Makefile | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 51 insertions(+), 2 deletions(-)
This should be able to reside in arch/arm/mach-socfpga/config.mk and so
it should be moved there. It might need to be done under "archprepare".
That would also let us gate even trying it with an ifeq, like we do
currently. I also don't see that you tested this "make O=/tmp/somedir"
(which is not the HANDOFF_PATH thing) and I expect it doesn't work there
as it references ".config" and not "$(objdir)/.config".
Finally, since you mentioned AIs in other emails, we do not yet have a
formal policy for or against their usage in this project (it is
something we need to discuss) but at a minimum the Fedora policy makes
sense to me if using one:
https://docs.fedoraproject.org/en-US/council/policy/ai-contribution-policy/
--
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/20251104/dd02ba33/attachment-0001.sig>
More information about the U-Boot
mailing list