1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 06:34:57 +00:00

Everywhere: Add RISC-V 64 target to the build system

This is a minimal set of changes to allow `serenity.sh build riscv64` to
successfully generate the build environment and start building. This
includes some, but not all, assembly stubs that will be needed later on;
they are currently empty.
This commit is contained in:
kleines Filmröllchen 2023-08-17 11:32:32 +02:00 committed by Andrew Kaster
parent c63fe0e1f1
commit 096cecb95e
12 changed files with 39 additions and 4 deletions

View file

@ -109,6 +109,11 @@ elseif ("${SERENITY_ARCH}" STREQUAL "x86_64")
set(ELF_SOURCES ${ELF_SOURCES} ../LibELF/Arch/x86_64/entry.S ../LibELF/Arch/x86_64/plt_trampoline.S)
set(CRTI_SOURCE "arch/x86_64/crti.S")
set(CRTN_SOURCE "arch/x86_64/crtn.S")
elseif ("${SERENITY_ARCH}" STREQUAL "riscv64")
set(ASM_SOURCES "arch/riscv64/setjmp.S")
set(ELF_SOURCES ${ELF_SOURCES} ../LibELF/Arch/riscv64/entry.S ../LibELF/Arch/riscv64/plt_trampoline.S)
set(CRTI_SOURCE "arch/riscv64/crti.S")
set(CRTN_SOURCE "arch/riscv64/crtn.S")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option")

View file

@ -0,0 +1 @@
# Intentionally empty.

View file

@ -0,0 +1 @@
# Intentionally empty.

View file

@ -0,0 +1 @@
# Intentionally empty.