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

MdePkg: Add FdtLib gmock support #62

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

jbrasen
Copy link
Contributor

@jbrasen jbrasen commented Dec 7, 2023

Add Google Mock Library for FdtLib

Jira TEGRAUEFI-3105

Change-Id: I96b74688b50ff555ca77b58f239ecc0f493cb118

@jbrasen jbrasen added Pending EDK2 Review EDK2 maintainer review needed Pending EDK2 merge Change is not in tianocore/master Pending EDK2 stable release Change is not in most recent edk2-stable tag labels Dec 11, 2023
Javagedes and others added 4 commits January 23, 2024 16:04
The UncrustifyCheck plugin passes os.stat.S_IWRITE to os.chmod, when
attempting to change file permissions. os.stat.S_IWRITE does not exist
as os.stat is a function. The correct value is stat.S_IWRITE.

Signed-off-by: Joey Vagedes <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Michael D Kinney <[email protected]>
Cc: Sean Brogan <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
The current dependency evaluator violates the memory access permission
when patching depex grammar directly in the read-only depex memory area.

Laszlo pointed out the optimization issue in the thread (1) "Memory
Attribute for depex section" and provided suggested patch to remove the
perf optimization.

In my testing, removing the optimization does not make significant perf
reduction. That makes sense that StandaloneMM dispatcher only searches
in MM protocol database and does not depend on UEFI/DXE protocol
database. Also, we don't have many protocols in StandaloneMM like
UEFI/DXE.

From Laszlo,

"The patch removes the EFI_DEP_REPLACE_TRUE handling altogether, plus it
CONST-ifies the Iterator pointer (which points into the DEPEX section),
so that the compiler catch any possible accesses at *build time* that
would write to the write-protected DEPEX memory area."

(1) https://edk2.groups.io/g/devel/message/113531

Signed-off-by: Nhi Pham <[email protected]>
Tested-by: levi.yun <[email protected]>
Reviewed-by: levi.yun <[email protected]>
Reviewed-by: Ray Ni <[email protected]>
Add the description of EFI_FILE_INFO FileName[1] field to align
with UEFI spec 2.10 Section 13.5.16.

Cc: Michael D Kinney <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Zhiguang Liu <[email protected]>
Signed-off-by: Suqiang Ren <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
CpuLib.h exposes StandardSignatureIsAuthenticAMD() API and we require
stub function in its BaseCpuLibNull library instance to avoid potential
link issue.

Cc: Michael D Kinney <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Zhiguang Liu <[email protected]>
Signed-off-by: Qing Huang <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
ResetSystem runtime call allows for sending reset data that
starts with a NULL terminated string. Add support to print
that string on console.

Signed-off-by: Ashish Singhal <[email protected]>
Reviewed-by: Zhichao Gao <[email protected]>
@jbrasen jbrasen force-pushed the Upstream/FdtLibGmock branch 2 times, most recently from 55b4530 to b81f9d4 Compare January 24, 2024 03:06
Add Google Mock Library for FdtLib

Jira TEGRAUEFI-3105

Signed-off-by: Jeff Brasen <[email protected]>
Change-Id: I96b74688b50ff555ca77b58f239ecc0f493cb118
@jbrasen jbrasen removed Pending EDK2 Review EDK2 maintainer review needed Pending EDK2 merge Change is not in tianocore/master labels Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pending EDK2 stable release Change is not in most recent edk2-stable tag
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants