mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +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
|
@ -7,7 +7,7 @@ print_help() {
|
|||
NAME=$(basename "$ARG0")
|
||||
cat <<EOF
|
||||
Usage: $NAME COMMAND [TARGET] [TOOLCHAIN] [ARGS...]
|
||||
Supported TARGETs: aarch64, x86_64, lagom. Defaults to SERENITY_ARCH, or x86_64 if not set.
|
||||
Supported TARGETs: aarch64, x86_64, riscv64, lagom. Defaults to SERENITY_ARCH, or x86_64 if not set.
|
||||
Supported TOOLCHAINs: GNU, Clang. Defaults to SERENITY_TOOLCHAIN, or GNU if not set.
|
||||
Supported COMMANDs:
|
||||
build: Compiles the target binaries, [ARGS...] are passed through to ninja
|
||||
|
@ -122,6 +122,10 @@ is_valid_target() {
|
|||
CMAKE_ARGS+=("-DSERENITY_ARCH=x86_64")
|
||||
return 0
|
||||
fi
|
||||
if [ "$TARGET" = "riscv64" ]; then
|
||||
CMAKE_ARGS+=("-DSERENITY_ARCH=riscv64")
|
||||
return 0
|
||||
fi
|
||||
if [ "$TARGET" = "lagom" ]; then
|
||||
CMAKE_ARGS+=("-DBUILD_LAGOM=ON")
|
||||
if [ "${CMD_ARGS[0]}" = "ladybird" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue