42 lines
1.0 KiB
Diff
42 lines
1.0 KiB
Diff
From ff44eba6593a3e8a3c0c7bcaf7ab913ba2b8e76f Mon Sep 17 00:00:00 2001
|
|
From: s_c_c <shichuchao@huawei.com>
|
|
Date: Tue, 12 Mar 2024 15:04:10 +0800
|
|
Subject: [PATCH] feat for embedded add linux_arm64 toolchain
|
|
|
|
---
|
|
toolchain/linux/BUILD.gn | 20 ++++++++++++++++++++
|
|
1 file changed, 20 insertions(+)
|
|
|
|
diff --git a/toolchain/linux/BUILD.gn b/toolchain/linux/BUILD.gn
|
|
index a8c2f78..9019e67 100644
|
|
--- a/toolchain/linux/BUILD.gn
|
|
+++ b/toolchain/linux/BUILD.gn
|
|
@@ -147,3 +147,23 @@ clang_toolchain("linux_clang_arm64") {
|
|
}
|
|
shlib_extension = ".z.so"
|
|
}
|
|
+
|
|
+gcc_toolchain("linux_arm64") {
|
|
+ tool_path = rebase_path("//toolchain/bin", root_build_dir)
|
|
+ toolprefix = "${tool_path}/aarch64-openeuler-linux-gnu-"
|
|
+
|
|
+ cc = "${toolprefix}gcc"
|
|
+ cxx = "${toolprefix}g++"
|
|
+
|
|
+ ar = "${toolprefix}ar"
|
|
+ ld = cxx
|
|
+ readelf = "${toolprefix}readelf"
|
|
+ nm = "${toolprefix}nm"
|
|
+
|
|
+ toolchain_args = {
|
|
+ current_cpu = "arm64"
|
|
+ current_os = "linux"
|
|
+ is_clang = false
|
|
+ }
|
|
+ shlib_extension = ".z.so"
|
|
+}
|
|
\ No newline at end of file
|
|
--
|
|
2.20.1 (Apple Git-117)
|
|
|