system76 / firmware-update

System76 Firmware Update Utility
GNU General Public License v3.0
204 stars 15 forks source link

Build as a 'bin' crate, linking with rust-lld #23

Closed ids1024 closed 4 years ago

ids1024 commented 4 years ago

This uses the x86_64-unknown-uefi target included with Rust, but passes a flag to change the entry point, since redox_uefi_std uses a _start symbol rather than efi_main.

This seems to be enough for it to work fine, based on "make qemu".

See also https://github.com/system76/firmware-setup/pull/14.