mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
kconfiglib: update with 'imply' support
Corresponds to 375506d (File writing nit) from upstream
(https://github.com/ulfalizer/Kconfiglib).
Adds proper 'imply' support and fixes a few minor issues, one of which
previously triggered the following weird warning:
configs/taurus_defconfig: /tmp/tmpisI45S:6: warning: assignment to SPL_LDSCRIPT changes mode of containing choice from "arch/$(ARCH)/cpu/u-boot-spl.lds" to "y"
The change in 8639f69
(genconfig.py: Print defconfig next to warnings)
was reapplied.
tools/moveconfig.py previously depended on a hack that merged 'select's
with 'imply's. It was modified to look at the union of
Symbol.get_selected_symbols() and Symbol.get_implied_symbols(), which
should give the same behavior.
tools/genboardscfg.py was verified to produce identical board.cfg's
before and after the change.
Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
This commit is contained in:
parent
2719ae3346
commit
4e1102f6de
2 changed files with 194 additions and 141 deletions
|
@ -1472,7 +1472,7 @@ def find_kconfig_rules(kconf, config, imply_config):
|
|||
"""
|
||||
sym = kconf.get_symbol(imply_config)
|
||||
if sym:
|
||||
for sel in sym.get_selected_symbols():
|
||||
for sel in sym.get_selected_symbols() | sym.get_implied_symbols():
|
||||
if sel.get_name() == config:
|
||||
return sym
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue