From 69c2ca97fbb1137d0b5717de47fd91a917811818 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Sat, 18 Nov 2017 11:05:46 +0300 Subject: [PATCH] add RISC-V architecture support Signed-off-by: Antony Pavlov --- config/arch/riscv.in | 10 ++++++++++ scripts/build/arch/riscv.sh | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 config/arch/riscv.in create mode 100644 scripts/build/arch/riscv.sh diff --git a/config/arch/riscv.in b/config/arch/riscv.in new file mode 100644 index 00000000..13233472 --- /dev/null +++ b/config/arch/riscv.in @@ -0,0 +1,10 @@ +# RISC-V specific config options + +## depends on EXPERIMENTAL +## +## select ARCH_SUPPORTS_32 +## select ARCH_DEFAULT_32 +## select GCC_REQUIRE_7_or_later + +## help The RISC-V architecture, as defined by: +## help http://www.riscv.org/ diff --git a/scripts/build/arch/riscv.sh b/scripts/build/arch/riscv.sh new file mode 100644 index 00000000..a0a5ba4f --- /dev/null +++ b/scripts/build/arch/riscv.sh @@ -0,0 +1,5 @@ +# Compute RISC-V-specific values + +CT_DoArchTupleValues() { + CT_TARGET_ARCH="riscv${CT_ARCH_BITNESS}" +}