Commit Graph

67 Commits

Author SHA1 Message Date
Raito Bezarius
99cf2d1e88 OVMF: remove invalid assert on SMM
Someone seems to believe that SMM implies x86, this is wrong.
aarch64 supports SMM too, see upstream QEMU code.

The proper way to do this is to signal support via QEMU itself, this is something
we cannot do because we have no way to communicate QEMU support itself (yet?).

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
2024-03-01 23:40:36 +01:00
Adam Stephens
4631f2e1ed
OVMF: remove CSM support
Upstream removed this support in edk2 202402
2024-02-27 20:39:11 -05:00
Shea Levy
6edee624d0
OVMF: Restore installation of OVMF.fd.
I accidentally removed this in f6fc51d (I missed the leading comma on
line 160), which was merged as part of #284874

This should be removed eventually, but it should be done intentionally
with proper release notes.
2024-02-26 07:55:55 -05:00
Shea Levy
88a1349dfe
OVMF: Enable bundling the MS secure boot variables on aarch64. 2024-02-16 08:27:37 -05:00
Shea Levy
f6fc51dc9f
OVMF: Clean up platform-specific code. 2024-02-16 06:58:39 -05:00
Shea Levy
9188bb5186
OVMF: Add test with secure boot enabled
Co-authored-by: Arthur Gautier <arthur.gautier@arista.com>
2024-02-15 12:13:05 -05:00
Shea Levy
4673ad7254
OVMF: Enable building an NVRAM variables template with MSFT keys. 2024-02-15 12:12:54 -05:00
Shea Levy
d68a84a55a
OVMF: Use larger flash size with secure boot.
Debian claims the default is too small.
2024-02-15 11:07:56 -05:00
Shea Levy
0703a70295
OVMF: Expose flag to require SMM with secure boot 2024-02-15 11:07:55 -05:00
Raito Bezarius
75b67b0de8 OVMF: support riscv64 suffix
It was forgot in the previous attempt to bring up RISC V UEFI.
2023-12-27 23:09:05 +01:00
Anderson Torres
d5c17b3c47 ovmf: fixup seabios location
Since it is now on `${seabios}/share/seabios`.
2023-12-11 08:22:52 -03:00
Raito Bezarius
b0eed3a0ac OVMF: mark broken on Darwin
https://hydra.nixos.org/build/241925714/nixlog/2
2023-11-25 13:13:24 +01:00
Raito Bezarius
db9b8f36df OVMF: support RISC-V
Built according to https://github.com/tianocore/edk2/tree/master/OvmfPkg/RiscVVirt
and 884f2fa7ed.
2023-11-25 13:12:30 +01:00
Raito Bezarius
770194fac1 OVMF: disable sourceDebug by default
`sourceDebug` enables a source-level debugger agent inside the UEFI code
that can be leveraged via a certain bus (USB or serial for example) to debug the platform.

See: https://github.com/tianocore/tianocore.github.io/wiki/SourceLevelDebugPkg for more information.
`sourceDebug` is almost something you never want when you debug UEFI in a virtual machine.

Debugging with GDB can be achieved via: https://github.com/tianocore/tianocore.github.io/wiki/How-to-debug-OVMF-with-QEMU-using-GDB.
2023-11-25 12:49:21 +01:00
Adam Stephens
36d3be1707
ovmf: add adamcstephens as maintainer 2023-07-27 17:44:12 -04:00
Adam Stephens
8d08370a41
ovmf: add support for 4MB flash image 2023-07-27 17:42:38 -04:00
Raito Bezarius
c449133f88 ovmf: support debugging 2023-04-26 18:31:57 +02:00
Raito Bezarius
70ae9b5943 ovmf: add TLS support 2023-04-26 18:31:19 +02:00
Raito Bezarius
9e7091bc65 ovmf: enable IPv6 by default
> At its meeting on 21 April 2023, the RIPE NCC Executive Board resolved to suspend the ability of RIPE NCC members to submit new applications to the IPv4 waiting list until further notice.

It's time enough to start using IPv6 everywhere, including UEFI.
2023-04-26 18:30:32 +02:00
Weijia Wang
ff8061e062 OVMF: fix build on x86_64-darwin 2023-04-18 13:27:00 +03:00
Artturin
226e149145 treewide: env.NIX_CFLAGS_COMPILE use optionalString instead of optional
env values must be strings
2023-02-22 21:23:05 +02:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Alyssa Ross
cc06a391ad OVMF: add 32-bit ARM support
Smoke tested in qemu.
2023-01-06 17:43:06 +00:00
Alyssa Ross
a7a79b12eb OVMF: inherit platforms from edk2
AFAICT OVMF runs on all EDK II platforms.
2023-01-06 17:43:06 +00:00
Alyssa Ross
247086c9e9 OVMF: add suffix for i686
This fixes eval of the ZFS NixOS tests on i686.

Fixes: 22b6f785a7 ("nixos/tests/zfs: Represent real world usage better")
2022-12-29 22:34:18 +00:00
Randy Eckenrode
b808a354d2
OVMF: fix build on x86_64-darwin
ZHF #199919
2022-11-06 19:36:59 -05:00
Raito Bezarius
c91d0713ac ovmf: expose EFI prefixes and refactor qemu-vm with it 2022-08-23 12:13:06 +02:00
Guillaume Girol
9ccccc3e25 edk2: fix cross compilation 2022-05-14 12:00:00 +00:00
Felix Buehler
3bc5196252 treewide: rename name to pname&version 2022-03-23 22:55:50 +01:00
Ryan Burns
233f451841 treewide: reenable LTO on i686 2021-11-05 22:16:50 -07:00
Thiago Kenji Okada
571c4e73e1 OVMF: disable LTO on i686
Fix build.
2021-11-05 15:38:07 -03:00
Jade
0b92261d6a
OVMF: add TPM2 support flags 2021-10-16 00:44:31 -04:00
Kid
b43389f49d iasl: drop pacakge 2021-08-10 03:46:01 +00:00
Arthur Gautier
a964b3cb6f OVMF: add support for http boot
Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
2021-02-16 00:46:00 +00:00
Ben Siraphob
108bdac3d9 pkgs/applications: stdenv.lib -> lib 2021-01-15 14:24:03 +07:00
Graham Christensen
bc49a0815a
utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
Daniel Fullmer
37bb17cdd4 OVMF: add symlinks for Fedora dir layout 2020-07-06 12:09:37 -07:00
Daniel Fullmer
90bf7332e1 OVMF: use Debian dir layout for aarch64 2020-07-06 12:07:50 -07:00
Markus Partheymüller
faf984d12d ed2k/OVMF: Put URLs in quotes 2020-05-04 16:00:37 +02:00
Markus Partheymüller
94d114dc2a edk2/OVMF: Determine build type from CC setting 2020-04-20 13:30:35 +02:00
Markus Partheymüller
f5f53288cc edk2/OVMF: Support build on macOS
In order to use OVMF firmware with e.g. qemu on macOS, these packages
needed to be made macOS ready. This meant choosing the clang build in
this case, because it is the only one working on macOS.

Unfortunately, just using clang on all platforms doesn't work because
there are hardcoded assumptions in the edk2 build system.
2020-04-20 09:53:32 +02:00
John Ericson
d0d5136cce Merge remote-tracking branch 'upstream/master' into wrapper-pname-support 2019-11-24 17:25:07 +00:00
John Ericson
9b090ccbca treewide: Get rid of most parseDrvName without breaking compat
That is because this commit should be merged to both master and
release-19.09.
2019-11-24 17:22:28 +00:00
Linus Heckemann
91ceb6b997 treewide: fix dead anonscm.debian.org links 2019-10-04 12:42:21 +02:00
Nikolay Amiantov
c3a6c8de88 edk2: 2017-12-05 -> 201905
* Move to stable version;
* Refactor `setup` to `mkDerivation`;
* Use flags instead of `sed`;
* Support Secure Boot builds.
2019-08-19 19:52:30 +03:00
Adam Finn Tulinius
8b8474b1b5
OVMF: update homepage
Tianocore was apparently moved from SourceForge to GitHub.
2018-09-18 13:18:41 +02:00
Tuomas Tynkkynen
f59eab75d2 edk2, OVMF: Build on aarch64
And also build in parallel.

I don't understand why we manually tediously link every single directory
from the source, but I don't want to investigate too much.
2018-03-21 23:19:26 +02:00
Tuomas Tynkkynen
1645011983 OVMF: Reformat a bit for readability
- Use 'somePkg == null' instead of 'somePkg == false' which is more
  conventional in rest of Nixpkgs
- Use lib.optionalString where applicable
2018-03-21 23:19:26 +02:00
Pascal Wittmann
24e87b49b6
Change many homepage urls from http to https #30636 2017-11-10 22:13:46 +01:00
Bjørn Forsman
67c70aa581 OVMF: add 'src' attribute
No functional change, but allows getting the source via the standard
attribute: `nix-build -A OVMF.src`.
2017-09-13 17:30:28 +02:00