From 2889b0e670c13a60c242db02b77bc6ccb8c8f4ec Mon Sep 17 00:00:00 2001 From: liangxinyan Date: Thu, 23 Jan 2025 10:35:59 +0800 Subject: [PATCH 1/4] IssueNo: https://gitee.com/openharmony/hiviewdfx_faultloggerd/issues/IBJF8Q Signed-off-by: liangxinyan --- kal/libc/musl/BUILD.gn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kal/libc/musl/BUILD.gn b/kal/libc/musl/BUILD.gn index c0a3e06c..dc376839 100644 --- a/kal/libc/musl/BUILD.gn +++ b/kal/libc/musl/BUILD.gn @@ -34,8 +34,10 @@ module_switch = defined(LOSCFG_LIBC_MUSL) module_name = get_path_info(rebase_path("."), "name") kernel_module(module_name) { configs += [ "$LITEOSTOPDIR:warn_config" ] - - deps = [ "$THIRDPARTY_MUSL_DIR/porting/liteos_m/kernel" ] + + if (ohos_build_tpe == "debug") { + deps = [ "$THIRDPARTY_MUSL_DIR/porting/liteos_m/kernel" ] + } } config("public") { -- Gitee From 4774cf992f03efa1b3afc079056fe9baabd6cca0 Mon Sep 17 00:00:00 2001 From: liangxinyan123 Date: Fri, 7 Feb 2025 09:35:57 +0000 Subject: [PATCH 2/4] update kal/libc/musl/BUILD.gn. Signed-off-by: liangxinyan123 --- kal/libc/musl/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kal/libc/musl/BUILD.gn b/kal/libc/musl/BUILD.gn index dc376839..c61ce6f4 100644 --- a/kal/libc/musl/BUILD.gn +++ b/kal/libc/musl/BUILD.gn @@ -35,7 +35,7 @@ module_name = get_path_info(rebase_path("."), "name") kernel_module(module_name) { configs += [ "$LITEOSTOPDIR:warn_config" ] - if (ohos_build_tpe == "debug") { + if (ohos_build_type == "debug") { deps = [ "$THIRDPARTY_MUSL_DIR/porting/liteos_m/kernel" ] } } -- Gitee From 053babcbde16372e20558902b8ff93d593050c45 Mon Sep 17 00:00:00 2001 From: liangxinyan123 Date: Sat, 8 Feb 2025 06:04:15 +0000 Subject: [PATCH 3/4] update kal/libc/musl/BUILD.gn. Signed-off-by: liangxinyan123 --- kal/libc/musl/BUILD.gn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kal/libc/musl/BUILD.gn b/kal/libc/musl/BUILD.gn index c61ce6f4..638252ed 100644 --- a/kal/libc/musl/BUILD.gn +++ b/kal/libc/musl/BUILD.gn @@ -34,7 +34,7 @@ module_switch = defined(LOSCFG_LIBC_MUSL) module_name = get_path_info(rebase_path("."), "name") kernel_module(module_name) { configs += [ "$LITEOSTOPDIR:warn_config" ] - + if (ohos_build_type == "debug") { deps = [ "$THIRDPARTY_MUSL_DIR/porting/liteos_m/kernel" ] } @@ -42,4 +42,4 @@ kernel_module(module_name) { config("public") { include_dirs = MUSL_INCLUDE_DIRS -} +} \ No newline at end of file -- Gitee From e98342a64764eb18684e6b5804900933b86023c9 Mon Sep 17 00:00:00 2001 From: liangxinyan123 Date: Mon, 10 Feb 2025 01:57:25 +0000 Subject: [PATCH 4/4] update kal/libc/musl/BUILD.gn. Signed-off-by: liangxinyan123 --- kal/libc/musl/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kal/libc/musl/BUILD.gn b/kal/libc/musl/BUILD.gn index 638252ed..4564d90c 100644 --- a/kal/libc/musl/BUILD.gn +++ b/kal/libc/musl/BUILD.gn @@ -42,4 +42,4 @@ kernel_module(module_name) { config("public") { include_dirs = MUSL_INCLUDE_DIRS -} \ No newline at end of file +} -- Gitee