[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 6/8] riscv: Add configure script
From: |
LIU Zhiwei |
Subject: |
[RFC PATCH 6/8] riscv: Add configure script |
Date: |
Thu, 30 Apr 2020 15:21:37 +0800 |
For RV64 risu, make CFLAGS="-march=rv64g"
Signed-off-by: LIU Zhiwei <address@hidden>
---
configure | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index ca2d7db..5c9e967 100755
--- a/configure
+++ b/configure
@@ -58,6 +58,8 @@ guess_arch() {
ARCH="m68k"
elif check_define __powerpc64__ ; then
ARCH="ppc64"
+ elif check_define __riscv ; then
+ ARCH="riscv64"
else
echo "This cpu is not supported by risu. Try -h. " >&2
exit 1
@@ -139,7 +141,7 @@ Some influential environment variables:
prefixed with the given string.
ARCH force target architecture instead of trying to detect it.
- Valid values=[arm|aarch64|ppc64|ppc64le|m68k]
+ Valid values=[arm|aarch64|ppc64|ppc64le|m68k|riscv64]
CC C compiler command
CFLAGS C compiler flags
--
2.23.0
- [RFC PATCH 0/8] RISCV risu porting, LIU Zhiwei, 2020/04/30
- [RFC PATCH 5/8] riscv: Add standard test case, LIU Zhiwei, 2020/04/30
- [RFC PATCH 6/8] riscv: Add configure script,
LIU Zhiwei <=
- [RFC PATCH 3/8] riscv: Define riscv struct reginfo, LIU Zhiwei, 2020/04/30
- [RFC PATCH 7/8] riscv: Add RV64M instructions description, LIU Zhiwei, 2020/04/30
- [RFC PATCH 1/8] riscv: Add RV64I instructions description, LIU Zhiwei, 2020/04/30
- [RFC PATCH 8/8] riscv: Add RV64F instructions description, LIU Zhiwei, 2020/04/30
- [RFC PATCH 4/8] riscv: Implement payload load interfaces, LIU Zhiwei, 2020/04/30
- [RFC PATCH 2/8] riscv: Generate payload scripts, LIU Zhiwei, 2020/04/30