Add optimized Makefile support for SoCFPGA handoff
authorBrian Sune <briansune@gmail.com>
Mon, 1 Dec 2025 09:04:07 +0000 (17:04 +0800)
committerTien Fong Chee <tien.fong.chee@intel.com>
Mon, 1 Dec 2025 09:26:52 +0000 (17:26 +0800)
commit87cb318344250ac7d598284c0a1928df6bcd1f4e
treebbd698564ec5dd90b34de0b409b2ef610fdccbd0
parent05f72f28e9a96a37650582b38d6158aa65ca9ec2
Add optimized Makefile support for SoCFPGA handoff

- Introduce socfpga_g5_handoff_prepare target in U-Boot
  arch/arm/mach-socfpga/config.mk
- Users can convert the handoff via make prepare.
- 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@gmail.com>
arch/arm/mach-socfpga/config.mk [new file with mode: 0644]