The __FILE_NAME__ be supported by gcc-12: Bug 42579 - [PATCH] support for obtaining file basename https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42579 We can move to gcc-12 for reducing the size of fv image. I will submit patch to edk2 mainline to remove the checking of __clang__ in _ASSERT macro. Before my patch be merged to mainline. I direct use shorter build root name (using edk2/ instead of edk2-edk2-stable202402/) when building ovmf RPM on OBS.