提交 f2ca46d9 编写于 作者: M Mupceet

uevent 使用dmesg

Signed-off-by: NMupceet <laiguizhong@huawei.com>
上级 3820ea12
...@@ -13,6 +13,14 @@ ...@@ -13,6 +13,14 @@
if (defined(ohos_lite)) { if (defined(ohos_lite)) {
if (ohos_kernel_type == "linux") { if (ohos_kernel_type == "linux") {
service_ueventd_deps = [
"//base/startup/init_lite/interfaces/innerkits/socket:libsocket",
"//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/param/base:parameterbase",
"//base/startup/init_lite/services/utils:libinit_utils",
"//third_party/bounds_checking_function:libsec_static",
]
executable("ueventd_linux") { executable("ueventd_linux") {
sources = [ sources = [
"//base/startup/init_lite/services/utils/init_utils.c", "//base/startup/init_lite/services/utils/init_utils.c",
...@@ -36,10 +44,8 @@ if (defined(ohos_lite)) { ...@@ -36,10 +44,8 @@ if (defined(ohos_lite)) {
"//base/startup/init_lite/ueventd/include", "//base/startup/init_lite/ueventd/include",
] ]
deps = [ deps = service_ueventd_deps
"//base/startup/init_lite/interfaces/innerkits:libbegetutil", deps += [ "//base/hiviewdfx/hilog_lite/frameworks/featured:hilog_shared" ]
"//third_party/bounds_checking_function:libsec_static",
]
} }
copy("ueventd.config") { copy("ueventd.config") {
sources = [ "etc/ueventd_l1.config" ] sources = [ "etc/ueventd_l1.config" ]
...@@ -79,16 +85,10 @@ if (defined(ohos_lite)) { ...@@ -79,16 +85,10 @@ if (defined(ohos_lite)) {
service_ueventd_deps = [ service_ueventd_deps = [
"//base/startup/init_lite/interfaces/innerkits/socket:libsocket", "//base/startup/init_lite/interfaces/innerkits/socket:libsocket",
"//base/startup/init_lite/services/log:init_log", "//base/startup/init_lite/services/log:init_log",
"//base/startup/init_lite/services/param/base:parameterbase",
"//base/startup/init_lite/services/utils:libinit_utils", "//base/startup/init_lite/services/utils:libinit_utils",
"//third_party/bounds_checking_function:libsec_static", "//third_party/bounds_checking_function:libsec_static",
] ]
group("startup_ueventd") {
deps = [
"//base/startup/init_lite/ueventd:libueventd_ramdisk_static",
"//base/startup/init_lite/ueventd:ueventd",
"//base/startup/init_lite/ueventd:ueventd.config",
]
}
# #
# exported include directories # exported include directories
...@@ -125,7 +125,7 @@ if (defined(ohos_lite)) { ...@@ -125,7 +125,7 @@ if (defined(ohos_lite)) {
"//base/startup/init_lite/interfaces/innerkits/include", "//base/startup/init_lite/interfaces/innerkits/include",
] ]
deps = service_ueventd_deps deps = service_ueventd_deps
deps += [ "//base/startup/init_lite/interfaces/innerkits:libbegetutil" ] deps += [ "//base/startup/init_lite/services/param/linux:param_client" ]
cflags = [] cflags = []
if (build_selinux) { if (build_selinux) {
......
...@@ -49,6 +49,8 @@ static void PollUeventdSocketTimeout(int ueventSockFd) ...@@ -49,6 +49,8 @@ static void PollUeventdSocketTimeout(int ueventSockFd)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
// start log
EnableInitLog(INIT_INFO);
char *ueventdConfigs[] = {"/etc/ueventd.config", "/vendor/etc/ueventd.config", NULL}; char *ueventdConfigs[] = {"/etc/ueventd.config", "/vendor/etc/ueventd.config", NULL};
int i = 0; int i = 0;
while (ueventdConfigs[i] != NULL) { while (ueventdConfigs[i] != NULL) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册