-
Notifications
You must be signed in to change notification settings - Fork 2.7k
ArmVirt: move Defines section to new include file #10997
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
base: master
Are you sure you want to change the base?
Conversation
kraxel
commented
Apr 23, 2025
•
edited
Loading
edited
03fa985
to
5ad16c9
Compare
This code change looks good to me. However, I believe you mean that the ArmTrngLib declaration from MdePkg/MdeLibs.dsc.inc would be used, see https://github.com/tianocore/edk2/blob/master/MdePkg/MdeLibs.dsc.inc#L24 I am not sure if the declaration in SecurityPkg/SecurityPkg.dsc should cause an issue. Can you confirm, please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit message may need updating. Can you check please?
5ad16c9
to
65d555a
Compare
Yes, the MdePkg include causing this makes alot more sense. Somehow missed that when grepping the source tree. Updated PR + commit message accordingly. |
This issue might come from the patch:
For ARM platforms, there was this patch: Ideally I think it would be better to change back the include order of |
The order isn't the problem, but the different section names.
Apparently |
I think they should have the same priority, cf:
When building
|
Ok. So I guess the options are:
|
I guess so. I think that in each dsc file of ArmVirtPkg impacted by commit 1f1182c, placing:
before including |
We have five files including |
Can we fix the MdeLibs include file instead? Apparently, setting this to DYNAMIC for ARM never makes sense, right? |
Not sure what exactly you have in mind. It's an opt-in feature, in case |
The [Defines] section must be processed before including MdeLibs.dsc.inc so the correct stack cookie library can be picked. The other sections (especially [LibraryClasses]) should be processed afterwards so ArmVirt.dsc.inc can override the defaults choosen by MdeLibs.dsc.inc. Implement that by splitting the ArmVirt.dsc.inc include file into two, with the new file carrying the [Defines] section. Signed-off-by: Gerd Hoffmann <[email protected]>
65d555a
to
a61ccb3
Compare
a61ccb3
to
80756d0
Compare
I'm not sure I understand either. |