提交 4b283592 编写于 作者: Y yangming_ha

IssueNo:#I3OU23 init适配linux内核

上级 44e40185
...@@ -11,14 +11,9 @@ ...@@ -11,14 +11,9 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
import("//build/lite/config/component/lite_component.gni")
lite_component("init_lite") {
features = [ ":init" ]
}
# feature: init # feature: init
executable("init") { executable("init_lite") {
output_name = "init"
defines = [ defines = [
"_GNU_SOURCE", #syscall function need this macro definition "_GNU_SOURCE", #syscall function need this macro definition
"OHOS_LITE", "OHOS_LITE",
...@@ -58,12 +53,17 @@ if (defined(ohos_lite)) { ...@@ -58,12 +53,17 @@ if (defined(ohos_lite)) {
"-lm", "-lm",
"-lpthread", "-lpthread",
] ]
deps = [
"//third_party/mksh",
"//third_party/toybox",
]
} }
} }
if (ohos_build_type == "debug") { if (ohos_build_type == "debug") {
group("unittest") { group("unittest") {
deps = [ "//base/startup/init_lite/services/test/unittest/common:unittest" ] deps =
[ "//base/startup/init_lite/services/test/unittest/common:unittest" ]
} }
} }
} else { } else {
...@@ -71,31 +71,29 @@ if (defined(ohos_lite)) { ...@@ -71,31 +71,29 @@ if (defined(ohos_lite)) {
ohos_executable("updaterueventd") { ohos_executable("updaterueventd") {
sources = [ sources = [
"src/uevent.c",
"src/list.c", "src/list.c",
"src/uevent.c",
] ]
include_dirs = [ include_dirs = [
"include", "include",
"//third_party/bounds_checking_function/include", "//third_party/bounds_checking_function/include",
] ]
deps = [ deps = [ "//third_party/bounds_checking_function:libsec_static" ]
"//third_party/bounds_checking_function:libsec_static",
]
install_enable = true install_enable = true
part_name = "updater" part_name = "updater"
} }
ohos_executable("updaterinit") { ohos_executable("updaterinit") {
sources = [ sources = [
"src/main.c", "src/device.c",
"src/init_adapter.c",
"src/init_cmds.c", "src/init_cmds.c",
"src/init_jobs.c", "src/init_jobs.c",
"src/init_read_cfg.c", "src/init_read_cfg.c",
"src/init_adapter.c",
"src/init_service.c", "src/init_service.c",
"src/init_service_manager.c", "src/init_service_manager.c",
"src/init_signal_handler.c", "src/init_signal_handler.c",
"src/device.c", "src/main.c",
] ]
include_dirs = [ include_dirs = [
"include", "include",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册