提交 def22d3f 编写于 作者: O openharmony_ci 提交者: Gitee

!467 将public config中的configs改为不受module_switch影响

Merge pull request !467 from Caoruihong/decouple_hdf_config
......@@ -29,19 +29,16 @@
import("//kernel/liteos_a/liteos.gni")
module_switch = defined(LOSCFG_DRIVERS)
group("drivers") {
if (module_switch) {
deps = [
"block/disk",
"char/bch",
"char/mem",
"char/quickstart",
"char/random",
"char/video",
"mtd/multi_partition",
]
}
deps = [
"block/disk",
"char/bch",
"char/mem",
"char/quickstart",
"char/random",
"char/video",
"mtd/multi_partition",
]
}
config("public") {
......
......@@ -49,6 +49,7 @@ template("config") {
config(target_name) {
if (defined(invoker.module_switch) && !invoker.module_switch && target_name == "public") {
not_needed(invoker, "*")
forward_variables_from(invoker, [ "configs" ])
} else {
forward_variables_from(invoker, "*")
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册