chore(build): set complete_static_lib false for libkernel
Signed-off-by: Caoruihong <crh.cao@huawei.com> Change-Id: Ia3da4f963f44babdc802c58c0afbb1adc1f16ee9
This commit is contained in:
parent
ee754f1f46
commit
02e6a0a7ea
16
BUILD.gn
16
BUILD.gn
|
@ -54,8 +54,6 @@ exec_script("//build/lite/run_shell_cmd.py",
|
||||||
|
|
||||||
import("liteos.gni")
|
import("liteos.gni")
|
||||||
|
|
||||||
visibility = [ ":*" ]
|
|
||||||
|
|
||||||
liteos_arch_cflags = []
|
liteos_arch_cflags = []
|
||||||
if (defined(LOSCFG_ARCH_ARM)) {
|
if (defined(LOSCFG_ARCH_ARM)) {
|
||||||
mcpu = LOSCFG_ARCH_CPU
|
mcpu = LOSCFG_ARCH_CPU
|
||||||
|
@ -271,21 +269,15 @@ group("modules") {
|
||||||
|
|
||||||
# when HAVE_DEVICE_SDK is not reached, gn raises an error. so we just use it as
|
# when HAVE_DEVICE_SDK is not reached, gn raises an error. so we just use it as
|
||||||
# not needed
|
# not needed
|
||||||
not_needed("*", [ "$HAVE_DEVICE_SDK" ])
|
not_needed([ "HAVE_DEVICE_SDK" ])
|
||||||
|
|
||||||
static_library("libkernel") {
|
static_library("libkernel") {
|
||||||
deps = [ ":modules" ]
|
deps = [ ":modules" ]
|
||||||
public_configs = [
|
complete_static_lib = false
|
||||||
":public",
|
|
||||||
":los_config",
|
|
||||||
]
|
|
||||||
complete_static_lib = true
|
|
||||||
visibility += []
|
|
||||||
}
|
}
|
||||||
|
|
||||||
group("kernel") {
|
group("kernel") {
|
||||||
public_deps = [ ":libkernel" ]
|
deps = [ ":libkernel" ]
|
||||||
visibility = []
|
|
||||||
visibility += [ "*:*" ]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
group("liteos_m") {
|
group("liteos_m") {
|
||||||
|
|
Loading…
Reference in New Issue