Hi Arthur,
- You never know whether the FSP binary will match a given header
slightly off-topic for this thread, but it's possible to check for mismatches between the expected FSP binary versions and the actual FSP binary version during runtime by implementing soc_validate_fspm_header that compares the version information from the FSP binary to some version defines in the FSP headers. See [1] for the implementation used by the AMD SoCs that use FSP.
Regards, Felix
[1] https://review.coreboot.org/plugins/gitiles/coreboot/+/aab7f0490419c50a1bcb5...