Skip to content

RedfishPkg/ConfigHandler: Remove [Depex] section from INF file#12395

Open
changab wants to merge 2 commits intotianocore:masterfrom
changab:ConfigHandle
Open

RedfishPkg/ConfigHandler: Remove [Depex] section from INF file#12395
changab wants to merge 2 commits intotianocore:masterfrom
changab:ConfigHandle

Conversation

@changab
Copy link
Copy Markdown
Member

@changab changab commented Apr 4, 2026

UEFI driver shouldn't have the [Depex] section in INF file. Remove Redfish Credential Protocol in the dependency section and locate it when the UEFI driver is connected to execute.

Description

fixes: #12394

UEFI driver shouldn't have a [Depex] section.

  • 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

Verified the functionality on AMD platform.

Integration Instructions

N/A

@tianocore-pr-automation
Copy link
Copy Markdown

Pull Request Formatting Issues

⚠️ Remove the following template lines from your PR description:
<_Include a description of the change and why this change was made._>

Address these issues and the validation will automatically re-run when you update your pull request.

@changab changab force-pushed the ConfigHandle branch 2 times, most recently from cae6fb3 to 12ccbd1 Compare April 4, 2026 17:08
@khaliid2040
Copy link
Copy Markdown
Member

Please link the issue with the PR probably. Suggestion:

Use fixes: #12394 instead of "Fix the issue #12394."

This auto-closes the issue when PR is merged.

//
// Check if the Redfish credential protocol is installed or not.
//
Status = RedfishConfigCommonInit ();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm... I am not a fan of calling init function in supported function. The end-of-dxe event and exit-boot-service event are created multiple times.

Could we just test and see if gEdkIIRedfishCredentialProtocolGuid is installed or not?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, we can test this procotol in the Support function and locate it in the Start().
Also, thanks for catching the multiple event registration issue.

@changab changab requested a review from nicklela April 8, 2026 01:09
UEFI driver shouldn't have the [Depex] section in INF file.
Remove Redfish Credential Protocol in dependency section
and locate it when the UEFI driver is connected to execute.

Signed-off-by: Abner Chang <abner.chang@amd.com>
Copy link
Copy Markdown
Contributor

@nicklela nicklela left a comment

Choose a reason for hiding this comment

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

Looks good to me but I have one minor comment.

**/

#pragma once
#ifndef EFI_REDFISH_CONFIG_HANDLER_COMMON_H_
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this intentional?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Edk2 has replaced include guards with pragma once, please refer #12149.

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.

[Bug]: Remove [DEPEX] section from RedfishConfigHandler driver

4 participants