Skip to content

Commit

Permalink
Revert "build: config: allow bool to select a module pkg"
Browse files Browse the repository at this point in the history
This reverts commit 8514b6b.

Reverting this commit in preparation for reverting
dcf3e63 ("build: scripts/config - update to kconfig-v5.6") which
introduces various unaddressed build breakages.

Signed-off-by: Jo-Philipp Wich <[email protected]>
  • Loading branch information
jow- committed Apr 11, 2020
1 parent 93294b5 commit fbc01f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions scripts/config/README
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ OpenWrt Buildroot:
that may cause one.
- use pre-built *.lex.c *.tab.[ch] files by default, to avoid depending on
flex & bison. Rebuild/remove these files only if running make with
BUILD_SHIPPED_FILES defined.
- allow a bool symbol to select a tristate symbol that depends on m (i.e.
a package that should only be built as a module).
BUILD_SHIPPED_FILES defined

For a full list of changes, see the repository at:
https://github.com/cotequeiroz/linux/commits/openwrt/scripts/kconfig
2 changes: 1 addition & 1 deletion scripts/config/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fbc01f2

Please sign in to comment.