[U-Boot] [PATCH 0/3] moveconfig: Allow automatic adding of 'imply' to options

Simon Glass sjg at chromium.org
Fri Jun 16 03:39:30 UTC 2017


A common requirement when converting options to Kconfig is to minimise the
number of defconfig files that must be changed.

For example, if the pre-Kconfig CONFIG_SCSI option is defined in
zynq-common.h, then hopefully it can be added as an 'imply SCSI' to the
Kconfig under ARCH_ZYNQ. This allows a single Kconfig change and avoids
changing 18 zynq defconfig files.

Unfortunately it is extremely tedious to find which 'implying' configs are
best for each option. The moveconfig database helps with this since it is
possible to obtain a list of possible implying configs.

To further help with the pain this series automates this work a bit. It
uses a Kconfig parser to find the location of each option in the Kconfig
tree. Using the information from the database it is then able to
automatically add an 'imply' option into the right place if requested by
the user. If an 'imply' already exists we can show its location as
confirmation that it exists.


Simon Glass (3):
  moveconfig: Allow piping in 'git show --stat' output
  moveconfig: Allow control of which implying configs are shown
  moveconfig: Allow automatic location and adding of 'imply'

 tools/moveconfig.py | 256 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 246 insertions(+), 10 deletions(-)

-- 
2.13.1.518.g3df882009-goog



More information about the U-Boot mailing list