On 17.11.25 13:46, 'Storm, Christian' via EFI Boot Guard wrote:
> Hi,
>
>>> The configury resolves the gnu-efi 4.0.0 to version 400. While the gnu-
>>> efi 3.0.16 resolves to version 3016. This leads to a none working
>>> bootaa64.efi for arm64. The cause is the version check in the code
>>> (main, and watchdog driver) where it checks for version < 3016.
>>>
>>> To fix this situation I locally decreased the version check to 400. But
>>> I do not know what the right solution should be. Is gnu-efi reporting
>>> correctly?
>>>
>>> Any ideas?
>>
>>
https://github.com/siemens/efibootguard/blob/469cabb97d36ebc868b1dac0aa2acaa8274a31a7/configure.ac#L237
>>
>> We basically take the version string of A.B.C and make it ABC - not good
>> for giving A and B the required significance... Better math would be
>> welcome ;)
>
> Something like this?:
>
> AC_SUBST([GNU_EFI_VERSION], [$( ($PKG_CONFIG --modversion "gnu-efi" 2>/dev/null || echo 0) | $AWK -F. '{print $1*1000000 + $2*1000 + $3}' )])
>
> I could prepare a patch....
>
...would be become. Just make sure to update all users of this new