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:
parent
c63fe0e1f1
commit
096cecb95e
12 changed files with 39 additions and 4 deletions
|
@ -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")
|
||||
|
|
1
Userland/Libraries/LibC/arch/riscv64/crti.S
Normal file
1
Userland/Libraries/LibC/arch/riscv64/crti.S
Normal file
|
@ -0,0 +1 @@
|
|||
# Intentionally empty.
|
1
Userland/Libraries/LibC/arch/riscv64/crtn.S
Normal file
1
Userland/Libraries/LibC/arch/riscv64/crtn.S
Normal file
|
@ -0,0 +1 @@
|
|||
# Intentionally empty.
|
1
Userland/Libraries/LibC/arch/riscv64/setjmp.S
Normal file
1
Userland/Libraries/LibC/arch/riscv64/setjmp.S
Normal file
|
@ -0,0 +1 @@
|
|||
# Intentionally empty.
|
Loading…
Add table
Add a link
Reference in a new issue