Browse Source

update patch for perfetto

Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
Rebecca Chang Swee Fun 1 year ago
parent
commit
46932c8bd5
1 changed files with 12 additions and 7 deletions
  1. 12 7
      third_party/0012-third-party-perfetto.patch

+ 12 - 7
third_party/0012-third-party-perfetto.patch

@@ -1,17 +1,22 @@
 diff --git a/gn/standalone/BUILD.gn b/gn/standalone/BUILD.gn
-index ab21e5877..d63efe924 100644
+index bd3311460..161d17dee 100644
 --- a/gn/standalone/BUILD.gn
 +++ b/gn/standalone/BUILD.gn
-@@ -252,6 +252,12 @@ config("default") {
+@@ -243,6 +243,17 @@ config("default") {
          "-msse4.2",
        ]
      }
 +  } else if (target_cpu == "riscv64") {
-+      cflags += [
-+        "-m64",
-+        "-march=rv64gc",
-+        "-mabi=lp64d",
-+      ]
++    cflags += [
++      "-m64",
++      "-mabi=lp64d",
++      "-mno-relax",
++      "--target=riscv64-linux-gnu",
++    ]
++    ldflags += [
++      "-mno-relax",
++      "--target=riscv64-linux-gnu",
++    ]
    }
  
    if (is_linux) {