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

Use x86_64-unknown-uefi target #92

Merged
merged 1 commit into from
Feb 6, 2019
Merged

Conversation

josephlr
Copy link
Contributor

@josephlr josephlr commented Feb 6, 2019

Rust now supports uefi as a build target: rust-lang/rust#56769

This change mainly eliminates references to the custom JSON target
file. It also requires that the entry point's name be changed to
efi_main.

Note that the "C" abi is now correct for EFI applications, but will
still be incorrect when uefi-rs is brought in as an external dependancy
for a different target. This means the entry point should always be
extern "C" while the table of function pointers should be extern "win64".

Rust now supports uefi as a build target: rust-lang/rust#56769

This change mainly eliminates references to the custom JSON target
file. It also requires that the entry point's name be changed to
`efi_main`.

Note that the "C" abi is now correct for EFI applications, but will
still be incorrect when uefi-rs is brought in as an external dependancy
for a different target. This means the entry point should always be
`extern "C"` while the table of function pointers should be `extern
"win64"`.
@josephlr josephlr force-pushed the target branch 3 times, most recently from cf3b04b to cd02b2f Compare February 6, 2019 09:35
@josephlr
Copy link
Contributor Author

josephlr commented Feb 6, 2019

@GabrielMajeri I can't figure out why the Travis run of QEMU is dropping back into the EFI shell with this change. I cannot seem to reproduce the failure locally.

@GabrielMajeri
Copy link
Collaborator

I've updated OVMF and ran the build again and it seems to have worked for now. Running QEMU + OVMF in CI always caused us problems, but it should be unrelated to this PR.

@GabrielMajeri GabrielMajeri merged commit 9830f08 into rust-osdev:master Feb 6, 2019
@josephlr josephlr deleted the target branch April 13, 2019 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants