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

Limiting capsule install to supported versions #431

Merged
merged 3 commits into from
Oct 12, 2023

Conversation

bkarstens
Copy link
Contributor

The inf generators generate capsules with:

[DestinationDirs]
DefaultDestDir = 13

The syntax 'DIRID 13' was introduced in OS version 10.0.16299, but DDInstall sections utilizing the syntax will install on earlier OS versions. Those DDInstall sections should be restricted to only install on 10.0.16299 or higher using a TargetOSVersion decoration.

See Combining platform extensions with operating system versions

Tested before and after with infverif.exe

@makubacki makubacki requested a review from Javagedes October 11, 2023 22:41
@bkarstens bkarstens changed the title added build number limiting install to supported versions Limiting capsule install to supported versions Oct 11, 2023
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (3b79a78) 81.07% compared to head (8917ff9) 81.07%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #431   +/-   ##
=======================================
  Coverage   81.07%   81.07%           
=======================================
  Files          57       57           
  Lines        7285     7285           
=======================================
  Hits         5906     5906           
  Misses       1379     1379           
Files Coverage Δ
edk2toollib/windows/capsule/inf_generator.py 95.31% <ø> (ø)
edk2toollib/windows/capsule/inf_generator2.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Javagedes Javagedes merged commit 000f4c8 into tianocore:master Oct 12, 2023
@Javagedes Javagedes added the bug Something isn't working label Oct 12, 2023
@Javagedes Javagedes added this to the 0.19.1 milestone Oct 12, 2023
Javagedes pushed a commit that referenced this pull request Apr 2, 2024
Limit capsule install inf changes to OS versions 17134 or higher for a newer HDC requirement.
Original PR - #431

"According to Zac Lockard for the InfVerif team, the new WHCP requirements went into force with the newest 26080 build which is why we're seeing this now. For reference, they link https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/inf-validation-errors-and-warnings#1199 and quote the page that says "You must fix all errors in order to pass driver tests in Hardware Dev Center."

It is the Device.DevFund.INF.Syntax requirement

This change was also pushed to all older versions of the OS due to this being a problem often in the ecosystem".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants