From 69c2ca97fbb1137d0b5717de47fd91a917811818 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Sat, 18 Nov 2017 11:05:46 +0300 Subject: add RISC-V architecture support Signed-off-by: Antony Pavlov diff --git a/config/arch/riscv.in b/config/arch/riscv.in new file mode 100644 index 0000000..1323347 --- /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 0000000..a0a5ba4 --- /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}" +} -- cgit v0.10.2-6-g49f6 From cc342748ce231a860d46300363a789cfc330c002 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Sat, 18 Nov 2017 18:14:34 +0300 Subject: add a bare metal RISC-V sample Signed-off-by: Antony Pavlov diff --git a/samples/riscv32-unknown-elf/crosstool.config b/samples/riscv32-unknown-elf/crosstool.config new file mode 100644 index 0000000..22a8f3f --- /dev/null +++ b/samples/riscv32-unknown-elf/crosstool.config @@ -0,0 +1,5 @@ +CT_EXPERIMENTAL=y +CT_ARCH_RISCV=y +CT_TARGET_VENDOR="" +CT_LIBC_NONE=y +# CT_CC_GCC_LDBL_128 is not set diff --git a/samples/riscv32-unknown-elf/reported.by b/samples/riscv32-unknown-elf/reported.by new file mode 100644 index 0000000..82ccb87 --- /dev/null +++ b/samples/riscv32-unknown-elf/reported.by @@ -0,0 +1,3 @@ +reporter_name="Antony Pavlov" +reporter_url="https://github.com/frantony/crosstool-ng" +reporter_comment="" -- cgit v0.10.2-6-g49f6