aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config/symbol.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-12 00:09:41 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-12 00:10:16 +0200
commitfbc01f2a4c072dafb3a6ef73e6f3f2ef1433575f (patch)
treed23a071653aa68caffa243365f33bc6014f9c923 /scripts/config/symbol.c
parent93294b516e5437980a3562496a5bedec1b3a424f (diff)
downloadupstream-fbc01f2a4c072dafb3a6ef73e6f3f2ef1433575f.tar.gz
upstream-fbc01f2a4c072dafb3a6ef73e6f3f2ef1433575f.tar.bz2
upstream-fbc01f2a4c072dafb3a6ef73e6f3f2ef1433575f.zip
Revert "build: config: allow bool to select a module pkg"
This reverts commit 8514b6b42c17d7cf887fc826596534698e89e3f8. Reverting this commit in preparation for reverting dcf3e63a35 ("build: scripts/config - update to kconfig-v5.6") which introduces various unaddressed build breakages. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'scripts/config/symbol.c')
-rw-r--r--scripts/config/symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/config/symbol.c b/scripts/config/symbol.c
index 051472238d..5c6f540314 100644
--- a/scripts/config/symbol.c
+++ b/scripts/config/symbol.c
@@ -205,7 +205,7 @@ static void sym_calc_visibility(struct symbol *sym)
tri = yes;
if (sym->dir_dep.expr)
tri = expr_calc_value(sym->dir_dep.expr);
- if (tri == mod)
+ if (tri == mod && sym_get_type(sym) == S_BOOLEAN)
tri = yes;
if (sym->dir_dep.tri != tri) {
sym->dir_dep.tri = tri;