mirror of
https://github.com/ipxe/ipxe
synced 2026-02-05 19:12:46 +03:00
[sbi] Add support for running as a RISC-V SBI payload
Add basic support for running directly on top of SBI, with no UEFI
firmware present. Build as e.g.:
make CROSS=riscv64-linux-gnu- bin-riscv64/ipxe.sbi
The resulting binary can be tested in QEMU using e.g.:
qemu-system-riscv64 -M virt -cpu max -serial stdio \
-kernel bin-riscv64/ipxe.sbi
No drivers or executable binary formats are supported yet, but the
unit test suite may be run successfully.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -352,6 +352,8 @@ arch :
|
||||
# Determine build platform
|
||||
DEFAULT_PLATFORM_i386 := pcbios
|
||||
DEFAULT_PLATFORM_x86_64 := pcbios
|
||||
DEFAULT_PLATFORM_riscv32 := sbi
|
||||
DEFAULT_PLATFORM_riscv64 := sbi
|
||||
DEFAULT_PLATFORM := $(DEFAULT_PLATFORM_$(ARCH))
|
||||
PLATFORM := $(firstword $(BIN_PLATFORM) $(DEFAULT_PLATFORM) none)
|
||||
CFLAGS += -DPLATFORM=$(PLATFORM) -DPLATFORM_$(PLATFORM)
|
||||
|
||||
Reference in New Issue
Block a user