Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support GNU-EFI 4.0 #102

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Support GNU-EFI 4.0 #102

merged 1 commit into from
Sep 19, 2024

Conversation

gmbr3
Copy link
Contributor

@gmbr3 gmbr3 commented Sep 19, 2024

  • Set GNU_EFI_3_0_COMPAT so CompareGuid runs using the old version otherwise this will break

Changed made in ncroxon/gnu-efi@a093fe0

* Set GNU_EFI_3_0_COMPAT so CompareGuid runs using the old version otherwise this will break

Changed made in ncroxon/gnu-efi@a093fe0

Signed-off-by: Callum Farmer <[email protected]>
@gmbr3
Copy link
Contributor Author

gmbr3 commented Sep 19, 2024

Hmm..

if (CompareGuid(&vendor_guid, &fwupdate_guid))

What's the expected return for this? True? All the other ones use == 0 or != 0

Copy link
Member

@hughsie hughsie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appreciated, thanks!

@hughsie
Copy link
Member

hughsie commented Sep 19, 2024

What's the expected return for this? True? All the other ones use == 0 or != 0

We're checking if the GUID is ours

@gmbr3
Copy link
Contributor Author

gmbr3 commented Sep 19, 2024

Under 3.0 logic, ==0 means match and !=0 means not match so presuming they'd be exactly the same it'd return 0 which when implicitly converted to boolean form is false? Code is working incorrectly then?

They'd be an exact match, right?

Or have I missed something?

@gmbr3
Copy link
Contributor Author

gmbr3 commented Sep 19, 2024

I know why! It's a not match. So it should be !=0

It's all good 👍

@hughsie hughsie merged commit 35a4502 into fwupd:main Sep 19, 2024
5 checks passed
@superm1
Copy link
Member

superm1 commented Sep 19, 2024

We probably want a new fwupd-efi release out soon for stuff like this.

Is GNU-EFI 4.0 out already?

@gmbr3
Copy link
Contributor Author

gmbr3 commented Sep 19, 2024

Is GNU-EFI 4.0 out already?

No but will be soon (couple of days), as there are lots of fixes and clarifications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants