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

SignedCapsulePkg: Allow hex FirmwareType values in ini files #6475

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bexcran
Copy link
Contributor

@bexcran bexcran commented Nov 27, 2024

Description

Some platforms such as Ampere Altra have special values for the FirmwareType field: for example 2147483649 is for SCP updates.

To make such values easier to read/understand, allow them to be written in hex: in this case it would be 0x80000001. Implement this by attempting to get a hex integer from the ini data file if reading a decimal value fails.

  • Breaking change?
    • Breaking change - Does this PR cause a break in build or boot behavior?
    • Examples: Does it add a new library class or move a module to a different repo.
  • Impacts security?
    • Security - Does this PR have a direct security impact?
    • Examples: Crypto algorithm change or buffer overflow fix.
  • Includes tests?
    • Tests - Does this PR include any explicit test code?
    • Examples: Unit tests or integration tests.

How This Was Tested

Write a SystemFirmwareUpdateConfig.ini file with a FirmwareType value of 0x80000002 and verified it was correctly read and interpreted when applying a capsule update.

Integration Instructions

N/A

Some platforms such as Ampere Altra have special values for the
FirmwareType field: for example 2147483649 is for SCP updates.

To make such values easier to read/understand, allow them to be
written in hex: in this case it would be 0x80000001. Implement this
by attempting to get a hex integer from the ini data file if reading
a decimal value fails.

Signed-off-by: Rebecca Cran <[email protected]>
@bexcran bexcran force-pushed the allow-hex-firmwaretype-capsule-updates branch from 8824e96 to 4c2fff1 Compare November 27, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant