• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From ca78fc54a94c5f29e4e6852dae01c75280198634 Mon Sep 17 00:00:00 2001
2From: Zhu Guodong <zhuguodong0001@163.com>
3Date: Wed, 12 Jul 2023 11:54:48 +0800
4Subject: [PATCH] auto-apply 0029-change-subsystem-name-to-thirdparty.patch
5
6---
7 mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/BUILD.gn | 6 ++++++
8 mindspore/core/mindrt/BUILD.gn                          | 1 +
9 mindspore/lite/BUILD.gn                                 | 2 ++
10 mindspore/lite/mindir/BUILD.gn                          | 1 +
11 mindspore/lite/src/runtime/js_api/BUILD.gn              | 2 +-
12 5 files changed, 11 insertions(+), 1 deletion(-)
13
14diff --git a/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/BUILD.gn b/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/BUILD.gn
15index 9acc5b76..c58ac10f 100644
16--- a/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/BUILD.gn
17+++ b/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/BUILD.gn
18@@ -66,6 +66,8 @@ ohos_source_set("nnacl_obj") {
19     ":nnacl_common",
20     ":nnacl_no_fast_math",
21   ]
22+  part_name = "mindspore"
23+  subsystem_name = "thirdparty"
24 }
25
26 # list of ${NNACL_DIR}/*.c
27@@ -749,10 +751,14 @@ ohos_source_set("nnacl_common") {
28   configs = [ ":nnacl_public_config" ]
29   cflags_c = [ "-ffast-math" ]
30   sources = nnacl_sources
31+  part_name = "mindspore"
32+  subsystem_name = "thirdparty"
33 }
34
35 ohos_source_set("nnacl_no_fast_math") {
36   configs = [ ":nnacl_public_config" ]
37   cflags_c = [ "-fno-fast-math" ]
38   sources = no_fast_math_fp32_kernel_sources
39+  part_name = "mindspore"
40+  subsystem_name = "thirdparty"
41 }
42diff --git a/mindspore/core/mindrt/BUILD.gn b/mindspore/core/mindrt/BUILD.gn
43index 2bc0e6cd..e1771b30 100644
44--- a/mindspore/core/mindrt/BUILD.gn
45+++ b/mindspore/core/mindrt/BUILD.gn
46@@ -42,4 +42,5 @@ ohos_source_set("mindrt_obj") {
47   remove_configs = [ "//build/config/compiler:no_rtti" ]
48
49   part_name = "mindspore"
50+  subsystem_name = "thirdparty"
51 }
52diff --git a/mindspore/lite/BUILD.gn b/mindspore/lite/BUILD.gn
53index dd542cfe..48b0461d 100644
54--- a/mindspore/lite/BUILD.gn
55+++ b/mindspore/lite/BUILD.gn
56@@ -666,6 +666,7 @@ ohos_shared_library("mindspore_lib") {
57     "-Wno-constant-conversion",
58   ]
59   part_name = "mindspore"
60+  subsystem_name = "thirdparty"
61 }
62
63 # Train library
64@@ -880,6 +881,7 @@ ohos_shared_library("mindspore_train_lib") {
65     "-Wno-constant-conversion",
66   ]
67   part_name = "mindspore"
68+  subsystem_name = "thirdparty"
69 }
70
71 # Build configurations
72diff --git a/mindspore/lite/mindir/BUILD.gn b/mindspore/lite/mindir/BUILD.gn
73index 8da00c2b..d2618716 100644
74--- a/mindspore/lite/mindir/BUILD.gn
75+++ b/mindspore/lite/mindir/BUILD.gn
76@@ -56,4 +56,5 @@ ohos_shared_library("mindir_lib") {
77   output_name = "mindir"
78   innerapi_tags = [ "platformsdk_indirect"]
79   part_name = "mindspore"
80+  subsystem_name = "thirdparty"
81 }
82diff --git a/mindspore/lite/src/runtime/js_api/BUILD.gn b/mindspore/lite/src/runtime/js_api/BUILD.gn
83index 7fb1cff0..b105bb77 100644
84--- a/mindspore/lite/src/runtime/js_api/BUILD.gn
85+++ b/mindspore/lite/src/runtime/js_api/BUILD.gn
86@@ -50,5 +50,5 @@ ohos_shared_library("mindsporelite_napi") {
87
88   relative_install_dir = "module/ai"
89   part_name = "mindspore"
90-  subsystem_name = "ai"
91+  subsystem_name = "thirdparty"
92 }
93--
942.34.1
95
96