-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
OVMF fix building without network support #6061
base: master
Are you sure you want to change the base?
Conversation
⚠ WARNING: Cannot add some reviewers: A user specified as a reviewer for this PR is not a collaborator of the repository. Please add them as a collaborator to the repository so they can be requested in the future. Non-collaborators requested: Attn Admins: Admin Instructions:
|
Creating a |
e50f656
to
bbf99f7
Compare
⚠ WARNING: Cannot add some reviewers: A user specified as a reviewer for this PR is not a collaborator of the repository. Please add them as a collaborator to the repository so they can be requested in the future. Non-collaborators requested: Attn Admins: Admin Instructions:
|
@kraxel please take a look, I tried to move PCDs to a separate include file |
Oh, I didn't realize there already is a |
@kraxel Yeah, there's a specific reason why I created a new file rather than added the PCDs to the existing At the moment, the NetworkPcds.dsc.inc file contains If I add new PCDs to this include file, I would need to make sure they are in the correct sections. This would mean changing the file to include different sections like:
Then, I would have to modify the DSC files that use this include file, as they reference Therefore, I found that separating the PCDs into |
PR can not be merged due to conflict. Please rebase and resubmit |
Introduce an include file with dynamic PCDs to simplify the usage of the network stage. This allows us to stop manually adding `PcdIPv4PXESupport` and `PcdIPv6PXESupport` to the DSC file. `NETWORK_IP4_ENABLE` and `NETWORK_IP6_ENABLE` are not used because PXEv4 and PXEv6 boot support can be controlled from the QEMU command line. Cc: Saloni Kasbekar <[email protected]> Cc: Zachary Clark-williams <[email protected]> Signed-off-by: Aleksandr Goncharov <[email protected]>
A similar patch has already been merged #6087 However, I don't believe it's the right approach to deal with network stuff just by adding a lot of DEFINEs IMHO |
Start using the include file in the OvmfPkg package to manage dynamic network-related PCDs. This change removes the manual addition of `PcdIPv4PXESupport` and `PcdIPv6PXESupport` from the DSC file, relying instead on the centralized include file introduced in NetworkPkg. Cc: Ard Biesheuvel <[email protected]> Cc: Jiewen Yao <[email protected]> Cc: Gerd Hoffmann <[email protected]> Cc: Jianyong Wu <[email protected]> Cc: Anatol Belski <[email protected]> Cc: Sunil V L <[email protected]> Cc: Andrei Warkentin <[email protected]> Cc: Chao Li <[email protected]> Cc: Bibo Mao <[email protected]> Cc: Xianglai Li <[email protected]> Signed-off-by: Aleksandr Goncharov <[email protected]>
Start using the include file in the ArmVirtPkg package to manage dynamic network-related PCDs. This change removes the manual addition of `PcdIPv4PXESupport` and `PcdIPv6PXESupport` from the DSC file, relying instead on the centralized include file introduced in NetworkPkg. Cc: Ard Biesheuvel <[email protected]> Cc: Leif Lindholm <[email protected]> Cc: Sami Mujawar <[email protected]> Cc: Gerd Hoffmann <[email protected]> Signed-off-by: Aleksandr Goncharov <[email protected]>
Rename `NetworkPcds` to `NetworkFixedPcds` to avoid confusion with dynamic PCDs. The next patches in the chain will update all references across the codebase to use the new name. Cc: Saloni Kasbekar <[email protected]> Cc: Zachary Clark-williams <[email protected]> Signed-off-by: Aleksandr Goncharov <[email protected]>
Rename `NetworkPcds` to `NetworkFixedPcds` to avoid confusion with dynamic PCDs Cc: Jiewen Yao <[email protected]> Cc: Gerd Hoffmann <[email protected]> Cc: Jianyong Wu <[email protected]> Cc: Anatol Belski <[email protected]> Cc: Sunil V L <[email protected]> Cc: Andrei Warkentin <[email protected]> Cc: Chao Li <[email protected]> Cc: Bibo Mao <[email protected]> Cc: Xianglai Li <[email protected]> Signed-off-by: Aleksandr Goncharov <[email protected]>
Rename `NetworkPcds` to `NetworkFixedPcds` to avoid confusion with dynamic PCDs. Cc: Leif Lindholm <[email protected]> Cc: Sami Mujawar <[email protected]> Cc: Gerd Hoffmann <[email protected]> Signed-off-by: Aleksandr Goncharov <[email protected]>
bbf99f7
to
2530c1f
Compare
⚠ WARNING: Cannot add some reviewers: A user specified as a reviewer for this PR is not a collaborator of the repository. Please add them as a collaborator to the repository so they can be requested in the future. Non-collaborators requested: Attn Admins: Admin Instructions:
|
Description
It's currently not possible to compile OVMF x64 without the network stack. My patch fixes that.
The second commit fixes the build issue specifically for X64 QEMU. However, similar problems occur on other QEMU platforms (IA32, MicrovmX64, etc.) and ArmVirtPkg. I am interested in fixing these platforms as well. Moving PCDs to conditional expressions across all platforms doesn't seem like an ideal solution. Instead, I propose moving them to
NetworkPcds.dsc.inc
. Any thoughts?How This Was Tested
Tested on QEMU 9.0.2 with NETWORK_ENABLE=FALSE and NETWORK_ENABLE=TRUE builds.
Integration Instructions
N/A