mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-09 20:06:18 +00:00
32 lines
1.1 KiB
Markdown
32 lines
1.1 KiB
Markdown
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
|
|
|
# Slint UEFI demo
|
|
|
|
This example demonstrates Slint in a UEFI environment.
|
|
|
|

|
|
|
|
Here's how it works:
|
|

|
|
|
|
To build this example a suitable UEFI rust target must be installed first:
|
|
|
|
```shell
|
|
rustup target install x86_64-unknown-uefi
|
|
```
|
|
|
|
To build, simply pass the `--package` and `--target` arguments to cargo:
|
|
|
|
```shell
|
|
cargo build --package uefi-demo --target x86_64-unknown-uefi
|
|
```
|
|
|
|
The produced UEFI binary can then either be tested on real hardware by booting
|
|
it like any other bootloader or directly with QEMU (the firmware location
|
|
varies by distro):
|
|
|
|
```shell
|
|
qemu-system-x86_64 -serial stdio -bios /usr/share/edk2-ovmf/x64/OVMF.fd -kernel target/x86_64-unknown-uefi/debug/uefi-demo.efi
|
|
```
|
|
|
|
**NOTE:** the OVMF are not support mouse moving. please run it at VM or your PC if you want to use mouse.
|