Skip to contentSkip to conversation

why two "config FIT_VERBOSE" lines in top-level Kconfig?

U-Boot Robert P. J. Day 1 participant 1 message Jan 2, 2017

lore
Share & tools
lore
#0 lore raw

weird ...

config FIT_VERBOSE
bool "Display verbose messages on FIT boot" depends on FIT

... jump to a bit lower down ...

config FIT_VERBOSE
bool "Show verbose messages when FIT images fails" depends on FIT
help
Generally a system will have valid FIT images so debug messages are a waste of code space. If you are debugging your images then you can enable this option to get more verbose information about failures.

this is really a lead-in to a larger question -- any objection to refactoring some of the Kconfig files that have numerous identical dependency lines which could be replaced by a simpler "if" test?

that top-level Kconfig file is a candidate, given the number of
"depends on FIT" lines that could be removed and surrounded by:

if FIT
...
endif

and some Kconfig files have entries in a weird order such that, if you select a feature, dependent features suddenly pop up somewhere else in the display, a bit disconcerting.

anyway, i'll post a refactored top-level Kconfig, so people can see
what i'm talking about.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================