OVMF: add cloudHypervisorSupport#297475
Conversation
RaitoBezarius
left a comment
There was a problem hiding this comment.
Please just generalize the projectDscPath and fwPrefix and make it an input and make it default to OVMF and the classical table for all platforms.
Enabling Cloud Hypervisor support means passing callPackage OVMF { projectDscPath = "OvmfPkg/CloudHv/CloudHvX64.dsc"; fwPrefix = "CLOUDHV"; } then.
|
@RaitoBezarius Thank you for proposing a better way. |
adamcstephens
left a comment
There was a problem hiding this comment.
I do like this solution better. Thanks. :)
|
@ofborg build OVMF OVMFFull OVMFFull.fd |
|
Hmm this call method doesn't give us a good way to limit supported systems. This package will only build on x86. |
I mean, currently this is akin to a cross compilation hack to x86 all the time I guess? |
adamcstephens
left a comment
There was a problem hiding this comment.
@RaitoBezarius do you clear your block?
RaitoBezarius
left a comment
There was a problem hiding this comment.
All good to go except for a potential abort situation, it needs to be a catchable, thus, a throw.
|
This is now failing ofborg eval. @ofborg build OVMF-cloud-hypervisor OVMF-cloud-hypervisor.passthru.tests OVMF |
Sorry. I added the missing parenthesis. |
adamcstephens
left a comment
There was a problem hiding this comment.
Sorry to keep requesting changes here, but this fails the build on aarch64 because that's not a supported platform.
Can you also turn meta.platforms into an argument that defaults to edk2.meta.platforms but is overridden for the cloudHypervisor?
A verbatim |
|
This PR seems to have broken Error and traceFound in NixOS/nix#10835 |
Temporarily(?) blocked on NixOS/nixpkgs#297475 (comment)
Temporarily(?) blocked on NixOS/nixpkgs#297475 (comment)
Temporarily(?) blocked on NixOS/nixpkgs#297475 (comment)
Description of changes
cloud-hypervisor has its own edk2 fork which seems to have been upstreamed.
Caveats:
cloudHypervisorSupportto indicate that?msVarsArgsthough Secure Boot isn't supported by cloud-hypervisor anyway.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.