aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMao Han <han_mao@linux.alibaba.com>2022-07-22 07:03:52 +0800
committerElliott Hughes <enh@google.com>2022-10-08 15:03:19 +0000
commit616f77ee7e55ec7c36e4c61c312957bfc7d4a4d3 (patch)
tree7325290b612bb1a0a119e5312772e40f7d3615cc
parent642de20f5d3da6d42d751ae3afb089fe39de5467 (diff)
downloadstrace-616f77ee7e55ec7c36e4c61c312957bfc7d4a4d3.tar.gz
Add riscv64 support
Add build script support and disable kvm for risc-v Signed-off-by: Mao Han <han_mao@linux.alibaba.com> Signed-off-by: Chen Guoyin <chenguoyin.cgy@linux.alibaba.com> Change-Id: Idbcb2800e0870e2993a6eb43d7d5cbcd9949a072
-rw-r--r--Android.bp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 801cffa3..08c7c539 100644
--- a/Android.bp
+++ b/Android.bp
@@ -170,6 +170,7 @@ cc_binary {
"renameat.c",
"resource.c",
"retval.c",
+ "riscv.c",
"rtc.c",
"rtnl_addr.c",
"rtnl_addrlabel.c",
@@ -292,6 +293,14 @@ cc_binary {
"linux",
],
},
+ riscv64: {
+ cflags: ["-DRISCV=1"],
+
+ local_include_dirs: [
+ "linux/riscv",
+ "linux",
+ ],
+ },
x86: {
cflags: ["-DI386=1"] + ["-DHAVE_STRUCT___OLD_KERNEL_STAT=1"],