提交 09d972c9 编写于 作者: O openharmony_ci 提交者: Gitee

!395 增加module_group模板,先注释掉arch_config

Merge pull request !395 from Caoruihong/build
...@@ -207,7 +207,7 @@ config("misc_config") { ...@@ -207,7 +207,7 @@ config("misc_config") {
config("los_config") { config("los_config") {
configs = [ configs = [
":arch_config", #":arch_config",
":kconfig_config", ":kconfig_config",
#":stdinc_config", #":stdinc_config",
......
...@@ -114,6 +114,28 @@ template("config") { ...@@ -114,6 +114,28 @@ template("config") {
} }
} }
template("module_group") {
assert(defined(invoker.modules), "modules are must")
group(target_name) {
deps = []
foreach(m, invoker.modules) {
deps += [ m ]
}
if (defined(invoker.deps)) {
deps += invoker.deps
}
}
config("public") {
configs = []
foreach(m, invoker.modules) {
configs += [ "$m:public" ]
}
if (defined(invoker.configs)) {
configs += invoker.configs
}
}
}
set_defaults("kernel_module") { set_defaults("kernel_module") {
configs = [ configs = [
"$LITEOSTOPDIR:public", "$LITEOSTOPDIR:public",
...@@ -121,6 +143,7 @@ set_defaults("kernel_module") { ...@@ -121,6 +143,7 @@ set_defaults("kernel_module") {
] ]
visibility = [ visibility = [
"$LITEOSTOPDIR/*", "$LITEOSTOPDIR/*",
"../*", "..:*",
":*",
] ]
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册