diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-10-28 14:40:35 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-10-28 19:20:50 +0000 |
commit | e0e102ee24bdab68b0318b505402f60cfb88a5f0 (patch) | |
tree | 197f71c01a84c567360ce8897795c57d9b339910 /src/Makefile.housekeeping | |
parent | 7ccd08dbf4e257cadb3a9e61fec1f37afb19949e (diff) | |
download | ipxe-e0e102ee24bdab68b0318b505402f60cfb88a5f0.tar.gz |
[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>
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index ba61e2166..2b4356de1 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -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) |