So that you know, this is the correct path to export AAVMF (counter-intuitively when comparing to x86-64):
https://gitlab.com/jarkkojs/linux-tpmdd-nixos/-/commit/f24224f0065df3376649e21492a1475f225d95e0Took a while to figure this out :-)
Also figured out the appropriate options on macOS (with Apple Silicon) how to launch my build with QEMU:
# After doing docker compose up --build:
qemu-system-aarch64 -machine virt -cpu host -accel hvf -m 2G -nographic -bios output/firmware.fd -hda output/tpmdd-nixos.qcow2
I think I've now substituted my legacy BuildRoot environment with this NixOS based system, and gained some new benefits, such as being able to do aarch64 kernel development on macOS and test Rust kernel code.
Next up: send MAINTAINERS update (BuildRoot -> NixOS).
I guess my last week of holiday has been spent well :-)
#linux #kernel #nix #nixos