]> git.baikalelectronics.ru Git - uboot.git/commit
moveconfig: Allow piping in 'git show --stat' output
authorSimon Glass <sjg@chromium.org>
Fri, 16 Jun 2017 03:39:31 +0000 (21:39 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:20 +0000 (10:08 -0600)
commitcfb71d750b2c22baf6f4c02a0f7efa28546bd6a3
tree1cfc0b01ebbb0c1492bbb7378ac40bcbaaf09c56
parent0019327e87c346aac1bec18d01efdd89e6466b42
moveconfig: Allow piping in 'git show --stat' output

It is useful to be able to process only a subset of boards to save time.
Often that subset is defined by the defconfig files in a git commit. This
change allows things like:

   # Build the database
   ./tools.moveconfig.py -b

   # Find some implying configs
   ./tools/moveconfig.py -i CONFIG_X

   # Add some 'imply' statements to Kconfig files
   ./tools/moveconfig.py -i CONFIG_X -a CONFIG_A,CONFIG_B

   # Reprocess the defconfig files to see if we can drop some changes
   git show --stat | ./tools/moveconfig.py -s -d -

   # Update the commit, with fewer defconfig changes
   gii commit -au

Where the commit contains defconfig files, this will reprocess them to
take account of the imply statements that you added.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/moveconfig.py