diff --git a/drivers/BUILD.gn b/drivers/BUILD.gn index 08ef974c..a4344b9d 100644 --- a/drivers/BUILD.gn +++ b/drivers/BUILD.gn @@ -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") { diff --git a/liteos.gni b/liteos.gni index d4ee8660..a792d3aa 100644 --- a/liteos.gni +++ b/liteos.gni @@ -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, "*") }