Can confirm that refit_call3_wrapper(gBS->SetMem, ...) fixes the duplicate tools bug. I've closed my original merge request and opened a simpler one.
Wrap SetMem for GNU-EFI and use for showtools config
Wrap SetMem when built with GNU-EFI to fix the "duplicate tools" bug
Iteratively zero out GlobalConfig.ShowTools after processing showtools tokens
I can confirm that refit_call3_wrapper(gBS->SetMem, ...) fixes the issue. I will close this merge request and open another with a simpler fix.
Wrap SetMem for GNU-EFI and use for show_tools config
Wrap SetMem for GNU-EFI and use for show_tools config
Wrap SetMem for GNU-EFI and use for show_tools config