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

ovmf: split firmware image files #25896

Merged
merged 1 commit into from
May 21, 2017
Merged

ovmf: split firmware image files #25896

merged 1 commit into from
May 21, 2017

Conversation

joachifm
Copy link
Contributor

The OVMF closure is huge, while we often only need OVMF{,_CODE,VARS}.fd.

See #25854

Not sure about why dontPatchELF now seems to be necessary for the build to pass, nor have I tested with Xen, so this is still WIP.

@mention-bot
Copy link

@joachifm, thanks for your PR! By analyzing the history of the files in this pull request, we identified @edolstra, @wkennington and @aszlig to be potential reviewers.

@joachifm
Copy link
Contributor Author

I've successfully built xen{,-light} with withOVMF = true, but the ovmf is not part of the resulting closure so I'm unsure about correctness there. That said, my reading of INSTALL suggests the original invocation was wrong to begin with.

OVMF{,CODE,VARS}.fd are now available in a dedicated fd output, greatly
reducing the closure in the common case where only those files are used (a
few MBs versus several hundred MBs for the full OVMF).

Note: it's unclear why `dontPatchELF` is now necessary for the build to
pass (on my end, at any rate) but it doesn't make much sense to run this
fixup anyway,

Note: my reading of xen's INSTALL suggests that --with-system-ovmf should
point directly to the OVMF binary.  As such, the previous invocation was
incorrect (it pointed to the root of the OVMF tree).  In any case, I have
only built xen with `--with-system-ovmf`, I have not tested it.

Fixes NixOS#25854
Closes NixOS#25855
@joachifm
Copy link
Contributor Author

Fair warning, I consider this "done" & intend to merge this if nobody objects.

@oxij
Copy link
Member

oxij commented May 21, 2017 via email

@joachifm
Copy link
Contributor Author

@oxij thank you. I'll go ahead with this, then.

@joachifm joachifm merged commit 07ceaa2 into NixOS:master May 21, 2017
@joachifm joachifm deleted the ovmf branch May 22, 2017 20:52
joachifm referenced this pull request in NixOS/nixpkgs-channels Jul 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants