Skip to content

Separate fih - #2799

Open
UEWBot wants to merge 4 commits into
mcu-tools:mainfrom
UEWBot:separate_fih
Open

Separate fih#2799
UEWBot wants to merge 4 commits into
mcu-tools:mainfrom
UEWBot:separate_fih

Conversation

@UEWBot

@UEWBot UEWBot commented Jul 23, 2026

Copy link
Copy Markdown

Move the fault injection hardening code into its own directory, so that it can be moved into a separate repo.

Issue #2798

UEWBot added 4 commits July 23, 2026 09:34
To facilitate splitting it into a stand-alone repo.

Fixes mcu-tools#2798

Signed-off-by: Chris Brand <chris.brand@cypress.com>
Inside the fault_injection_hardening directory, use FIH_PROFILE_*
instead of MCUBOOT_FIH_PROFILE_*.
In fault_injection_hardening.h, include fih_config.h rather than
mcuboot_config.h.
Add fih_config.h that maps from MCUBOOT_FIH_PROFILE_* macros to the new
FIH_PROFILE_* macros.

fault_injection_hardening.h now errors out if none of the 4 FIH_PROFILE_*
macros is defined, and fih_config.h provides the "default to NONE"
behaviour that was previously applied in fault_injection_hardening.h.

Overall, this retains backwards compatibility for mcuboot while
facilitating the use of the fault injection hardening code outside of
mcuboot.

Fixes mcu-tools#2798

Signed-off-by: Chris Brand <chris.brand@cypress.com>
In preparation for splitting this directory into a separate repo,
add the various documentation files as needed. Mostly copied directly
from the root of the mcuboot repo.

Signed-off-by: Chris Brand <chris.brand@cypress.com>
Signed-off-by: Chris Brand <chris.brand@cypress.com>
@nordicjm

Copy link
Copy Markdown
Collaborator

afaik TF-M wanted to do something similar @davidvincze might know about that

@d3zd3z d3zd3z self-assigned this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants