From e839c80b12dbd92ae1bf30bbb5ce98aec566bb00 Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Wed, 8 Dec 2021 20:45:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=89=E5=85=A8=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=BA=93=E9=87=8D=E5=A4=8D=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close: #I4LP5H Signed-off-by: arvinzzz Change-Id: I80e02fa403874b89f8a3599dadc6d6482e363898 --- BUILD.gn | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 3480e17..8913965 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -28,7 +28,11 @@ config("libsec_public_config") { if (defined(ohos_lite)) { lite_library("libsec_static") { target_type = "static_library" - sources = libsec_sources + + # When the kernel is liteos_m, use //kernel/liteos_m/kal/libsec/BUILD.gn to compile. + if (ohos_kernel_type != "liteos_m") { + sources = libsec_sources + } public_configs = [ ":libsec_public_config" ] } lite_library("libsec_shared") {