Lines Matching +full:- +full:- +full:list +full:- +full:error +full:- +full:boards
5 # SPDX-License-Identifier: GPL-2.0+
11 Since Kconfig was introduced to U-Boot, we have worked on moving
18 -----
46 - Move 'CONFIG_... '
49 - CONFIG_... is not defined in Kconfig. Do nothing.
53 - CONFIG_... is not defined in Kconfig (suspicious). Do nothing.
57 - You forgot to create an entry for the CONFIG before running
59 - The entry was hidden due to unmet 'depends on'.
63 - 'CONFIG_...' is the same as the define in Kconfig. Do nothing.
67 - Compiler is missing. Do nothing.
70 (If -e option is passed, the tool exits immediately.)
72 - Failed to process.
73 An error occurred during processing this defconfig. Skipped.
74 (If -e option is passed, the tool exits immediately on error.)
85 -----------------
98 For faster processing, this tool handles multi-threading. It creates
99 separate build directories where the out-of-tree build is run. The
102 cores of your system although you can change it via -j (--jobs) option.
106 ----------
109 for all the architectures supported by U-Boot. Most of them are available
111 the same tools as buildman, so see that tool for setup (e.g. --fetch-arch).
115 --------------
119 ./tools/moveconfig.py -s -d <(grep -l X86 configs/*)
123 grep -l X86 configs/* | ./tools/moveconfig.py -s -d -
128 ./tools/moveconfig.py -Cy CONFIG_CMD_FPGAD -d -
132 -----------------------
137 all x86 boards will have that option, avoiding adding CONFIG_CMD_IRQ to
142 ./tools/moveconfig.py -b
146 ./tools/moveconfig.py -i CONFIG_CMD_IRQ
176 This shows a list of config options which might imply CONFIG_CMD_EEPROM along
193 You can automatically add 'imply' statements in the Kconfig with the -a
196 ./tools/moveconfig.py -s -i CONFIG_SCSI \
197 -a CONFIG_ARCH_LS1021A,CONFIG_ARCH_LS1043A
206 13 : CONFIG_ARCH_LS1043A arch/arm/cpu/armv8/fsl-layerscape/Kconfig:11
207 12 : CONFIG_ARCH_LS1046A arch/arm/cpu/armv8/fsl-layerscape/Kconfig:31
209 The first number is the number of boards which can avoid having a special
213 in arch/arm/cpu/armv7/ls102xa/Kconfig at line 1 will help 18 boards to reduce
216 If you want to add an 'imply' to every imply config in the list, you can use
218 ./tools/moveconfig.py -s -i CONFIG_SCSI -a all
220 To control which ones are displayed, use -I <list> where list is a list of
221 options (use '-I help' to see possible options and their meaning).
223 To skip showing you options that already have an 'imply' attached, use -A.
226 defconfig files for affected boards with something like:
228 git show --stat | ./tools/moveconfig.py -s -d -
237 -----------------
239 -c, --color
243 -C, --commit
247 -d, --defconfigs
248 Specify a file containing a list of defconfigs to move. The defconfig
249 files can be given with shell-style wildcards. Use '-' to read from stdin.
251 -n, --dry-run
255 -e, --exit-on-error
256 Exit immediately if Make exits with a non-zero status while processing
259 -s, --force-sync
264 -S, --spl
270 -H, --headers-only
273 -j, --jobs
277 -r, --git-ref
281 before that change was in effect. If in doubt, specify a ref pre-Kconfig
285 -v, --verbose
286 Show any build errors as boards are built
288 -y, --yes
293 To see the complete list of supported options, run
295 $ tools/moveconfig.py -h
323 SHOW_GNU_MAKE = 'scripts/show-gnu-make'
382 U-Boot needs GNU Make for building, but the command name is not
401 a list of matching defconfig files
414 defconfigs_file: File containing a list of defconfigs to process, or
415 '-' to read the list from stdin
418 A list of paths to defconfig files, with no duplicates
421 if defconfigs_file == '-':
456 # Otherwise, additional whitespace or line-feed might be printed.
466 a: A list of lines (before)
467 b: A list of lines (after)
477 if line[0] == '-' and line[1] != '-':
490 lines: A list of lines handled.
491 matched: A list of line numbers that have been already matched.
493 pre_patterns: A list of regular expression that should be matched as
495 post_patterns: A list of regular expression that should be matched as
497 extend_pre: Add the line number of matched preamble to the matched list.
498 extend_post: Add the line number of matched postamble to the matched list.
514 if p.search(lines[i - 1]):
528 extended_matched.append(i - 1)
550 """Clean regex-matched lines away from a file.
554 patterns: list of regex patterns. Any lines matching to these
563 if i - 1 in matched and lines[i - 1][-2:] == '\\\n':
613 configs: A list of CONFIGs to remove.
638 configs: A list of CONFIGs to remove.
655 old_tokens = line[len(start):-len(end)].split(',')
686 configs: A list of CONFIGs to remove.
704 configs: A list of CONFIGs to remove.
728 configs: A list of CONFIGs to remove.
807 configs: A list of CONFIGs to move.
840 # fix-up for aarch64
884 if old_val[-2:] != '=y' and old_val[-2:] != '=m' and old_val != not_set:
888 if new_val[-2:] == '=y':
889 new_val = new_val[:-1] + '1'
960 sys.exit("Internal Error. This should not happen.")
1042 configs: A list of CONFIGs to move.
1068 even if Python suddenly dies due to error. It should be done in here
1141 sys.exit("Internal Error. This should not happen.")
1146 """Handle error cases."""
1158 cmd = list(self.make_cmd)
1178 cmd = list(self.make_cmd)
1214 cmd = list(self.make_cmd)
1256 sys.exit("Exit on error.")
1257 # If --exit-on-error flag is not set, skip this board and continue.
1266 """Returns a set of failed boards (defconfigs) in this slot.
1271 """Returns a set of boards (defconfigs) with possible misconversion.
1273 return self.suspicious_boards - self.failed_boards
1285 configs: A list of CONFIGs to move.
1339 """Display all of the failed boards (defconfigs)."""
1340 boards = set()
1344 boards |= slot.get_failed_boards()
1346 if boards:
1347 boards = '\n'.join(boards) + '\n'
1348 msg = "The following boards were not processed due to error:\n"
1349 msg += boards
1350 msg += "(the list has been saved in %s)\n" % output_file
1355 f.write(boards)
1358 """Display all boards (defconfigs) with possible misconversion."""
1359 boards = set()
1363 boards |= slot.get_suspicious_boards()
1365 if boards:
1366 boards = '\n'.join(boards) + '\n'
1367 msg = "The following boards might have been converted incorrectly.\n"
1369 msg += boards
1370 msg += "(the list has been saved in %s)\n" % output_file
1375 f.write(boards)
1385 commit: commit to git-clone
1392 subprocess.check_output(['git', 'rev-parse', '--short', commit]).strip()
1400 even if Python suddenly dies due to error. It should be done in here
1415 configs: A list of CONFIGs to move.
1424 print 'Neither CONFIG nor --force-sync is specified. Nothing will happen.',
1511 if data[linenum - 1] != 'config %s' % imply_config:
1528 linenum -= 1
1543 'min2': [IMPLY_MIN_2, 'Show options which imply >2 boards (normally >5)'],
1546 'non-arch-board': [
1553 """Find CONFIG options which imply those in the list
1558 all x86 boards will have that option, avoiding adding CONFIG_CMD_IRQ to
1562 displays a list of things that could possibly imply those in the list.
1568 - Get the set 'defconfigs' which use that target config
1569 - For each config (from a list of all configs):
1570 - Get the set 'imply_defconfig' of defconfigs which use that config
1571 -
1572 - If imply_defconfigs contains anything not in defconfigs then
1576 config_list: List of CONFIG options to check (each a string)
1590 config - a CONFIG_XXX options (a string, e.g. 'CONFIG_CMD_EEPROM')
1591 defconfig - a defconfig file (a string, e.g. 'configs/snow_defconfig')
1636 non_defconfigs = all_defconfigs - defconfigs
1643 rest_configs = all_configs - set([config])
1664 # also contain the taret config. If this set is non-empty it means
1699 add_list = collections.defaultdict(list)
1706 missing = defconfigs - imply_configs[iconfig]
1746 print '%5d : %-30s%-25s %s' % (num_common, iconfig.ljust(30),
1749 # Having collected a list of things to add, now we add them. We process
1767 parser.add_option('-a', '--add-imply', type='string', default='',
1768 help='comma-separated list of CONFIG options to add '
1769 "an 'imply' statement to for the CONFIG in -i")
1770 parser.add_option('-A', '--skip-added', action='store_true', default=False,
1773 parser.add_option('-b', '--build-db', action='store_true', default=False,
1775 parser.add_option('-c', '--color', action='store_true', default=False,
1777 parser.add_option('-C', '--commit', action='store_true', default=False,
1779 parser.add_option('-d', '--defconfigs', type='string',
1780 help='a file containing a list of defconfigs to move, '
1782 "or '-' to read from stdin")
1783 parser.add_option('-i', '--imply', action='store_true', default=False,
1785 parser.add_option('-I', '--imply-flags', type='string', default='',
1786 help="control the -i option ('help' for help")
1787 parser.add_option('-n', '--dry-run', action='store_true', default=False,
1789 parser.add_option('-e', '--exit-on-error', action='store_true',
1791 help='exit immediately on any error')
1792 parser.add_option('-s', '--force-sync', action='store_true', default=False,
1794 parser.add_option('-S', '--spl', action='store_true', default=False,
1796 parser.add_option('-H', '--headers-only', dest='cleanup_headers_only',
1799 parser.add_option('-j', '--jobs', type='int', default=cpu_count,
1801 parser.add_option('-r', '--git-ref', type='string',
1803 parser.add_option('-y', '--yes', action='store_true', default=False,
1805 parser.add_option('-v', '--verbose', action='store_true', default=False,
1806 help='show any build errors as boards are built')
1825 imply_flags = -1
1835 print ' %-15s: %s' % (name, info[1])
1866 subprocess.call(['git', 'add', '-u'])
1875 subprocess.call(['git', 'commit', '-s', '-m', msg])