diff options
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | config/arch/riscv.in | 3 | ||||
-rw-r--r-- | packages/mpfr/4.0.1/0001-Fix-obsolete-ARC-asm-constraints.patch | 37 | ||||
-rw-r--r-- | packages/musl/1.1.20/chksum | 4 | ||||
-rw-r--r-- | packages/musl/1.1.20/version.desc | 0 | ||||
-rw-r--r-- | samples/riscv64-unknown-linux-gnu/crosstool.config | 12 | ||||
-rw-r--r-- | samples/riscv64-unknown-linux-gnu/reported.by | 3 | ||||
-rw-r--r-- | scripts/build/libc/newlib.sh | 2 |
8 files changed, 65 insertions, 3 deletions
@@ -18,8 +18,11 @@ config/versions/ verbatim-data.mk maintainer/package-versions -*.tar.xz -*.tar.bz2 +# Compressed files +*.tar* +*.zip +*.xz +*.7zip # Temporaries .*.swp diff --git a/config/arch/riscv.in b/config/arch/riscv.in index 4efde976..109556a7 100644 --- a/config/arch/riscv.in +++ b/config/arch/riscv.in @@ -4,9 +4,12 @@ ## depends on EXPERIMENTAL ## ## select ARCH_SUPPORTS_32 +## select ARCH_SUPPORTS_64 ## select ARCH_DEFAULT_32 +## select ARCH_SUPPORTS_BOTH_MMU ## select ARCH_SUPPORTS_WITH_ABI ## select ARCH_SUPPORTS_WITH_ARCH +## select ARCH_SUPPORTS_WITH_TUNE ## select GCC_REQUIRE_7_or_later ## help The RISC-V architecture, as defined by: diff --git a/packages/mpfr/4.0.1/0001-Fix-obsolete-ARC-asm-constraints.patch b/packages/mpfr/4.0.1/0001-Fix-obsolete-ARC-asm-constraints.patch new file mode 100644 index 00000000..12590cfd --- /dev/null +++ b/packages/mpfr/4.0.1/0001-Fix-obsolete-ARC-asm-constraints.patch @@ -0,0 +1,37 @@ +mpfr-longlong.h: Fix obsolete ARC asm constraints + +This patch replaces obsolete ARC "J" asm constraint with +up-to-date "Cal" constraint. +The patch should be applied to upstream "mpfr" library and +after that it should be removed from buildroot as soon as +mpfr version with current fix will come up. + +Signed-off-by: Vlad Zakharov <vzakhar@synopsys.com> +Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com> +--- +Index: /src/mpfr-longlong.h +=================================================================== +--- /src/mpfr-longlong.h (revision 10963) ++++ /src/mpfr-longlong.h (working copy) +@@ -416,17 +416,17 @@ + : "=r" (sh), \ + "=&r" (sl) \ + : "r" ((USItype) (ah)), \ +- "rIJ" ((USItype) (bh)), \ ++ "rICal" ((USItype) (bh)), \ + "%r" ((USItype) (al)), \ +- "rIJ" ((USItype) (bl))) ++ "rICal" ((USItype) (bl))) + #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ + __asm__ ("sub.f\t%1, %4, %5\n\tsbc\t%0, %2, %3" \ + : "=r" (sh), \ + "=&r" (sl) \ + : "r" ((USItype) (ah)), \ +- "rIJ" ((USItype) (bh)), \ ++ "rICal" ((USItype) (bh)), \ + "r" ((USItype) (al)), \ +- "rIJ" ((USItype) (bl))) ++ "rICal" ((USItype) (bl))) + #endif + + #if defined (__arm__) && (defined (__thumb2__) || !defined (__thumb__)) \ diff --git a/packages/musl/1.1.20/chksum b/packages/musl/1.1.20/chksum new file mode 100644 index 00000000..d40bf263 --- /dev/null +++ b/packages/musl/1.1.20/chksum @@ -0,0 +1,4 @@ +md5 musl-1.1.20.tar.gz 8d5dc34a4778b24b5b60f56330c75fee +sha1 musl-1.1.20.tar.gz 469b3af68a49188c8db4cc94077719152c0d41f1 +sha256 musl-1.1.20.tar.gz 44be8771d0e6c6b5f82dd15662eb2957c9a3173a19a8b49966ac0542bbd40d61 +sha512 musl-1.1.20.tar.gz d3a7a30aa375ca50d7dcfbd618581d59e1aa5378417f50a0ca5510099336fd74cc9db468e05c93dda3067abd890f6bd47af226c3446bb833adf0a5054bff2e5d diff --git a/packages/musl/1.1.20/version.desc b/packages/musl/1.1.20/version.desc new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/packages/musl/1.1.20/version.desc diff --git a/samples/riscv64-unknown-linux-gnu/crosstool.config b/samples/riscv64-unknown-linux-gnu/crosstool.config new file mode 100644 index 00000000..66c288de --- /dev/null +++ b/samples/riscv64-unknown-linux-gnu/crosstool.config @@ -0,0 +1,12 @@ +CT_EXPERIMENTAL=y +CT_ARCH_RISCV=y +# CT_DEMULTILIB is not set +CT_ARCH_USE_MMU=y +CT_ARCH_64=y +CT_KERNEL_LINUX=y +CT_DEBUG_GDB=y +# CT_GDB_CROSS_PYTHON is not set +# CT_GDB_GDBSERVER is not set +CT_ZLIB_NEEDED=y +CT_TARGET_VENDOR="unknown" +CT_ARCH_ARCH="rv64gc" diff --git a/samples/riscv64-unknown-linux-gnu/reported.by b/samples/riscv64-unknown-linux-gnu/reported.by new file mode 100644 index 00000000..9456e59b --- /dev/null +++ b/samples/riscv64-unknown-linux-gnu/reported.by @@ -0,0 +1,3 @@ +reporter_name="Paul Walmsley <paul.walmsley@sifive.com>" +reporter_url="https://www.sifive.com/" +reporter_comment="" diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index ca2f74be..2b1e5bb4 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -38,7 +38,7 @@ do_libc() { # Multilib is the default, so if it is not enabled, disable it. if [ "${CT_MULTILIB}" != "y" ]; then - extra_config+=("--disable-multilib") + newlib_opts+=("--disable-multilib") fi if [ "${CT_LIBC_NEWLIB_IO_FLOAT}" = "y" ]; then |