Lines Matching +full:buildman +full:- +full:toolchains
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.
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.
105 Toolchains
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 -----------------------
142 ./tools/moveconfig.py -b
146 ./tools/moveconfig.py -i CONFIG_CMD_IRQ
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
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.
228 git show --stat | ./tools/moveconfig.py -s -d -
237 -----------------
239 -c, --color
243 -C, --commit
247 -d, --defconfigs
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
288 -y, --yes
295 $ tools/moveconfig.py -h
317 sys.path.append(os.path.join(os.path.dirname(__file__), 'buildman'))
323 SHOW_GNU_MAKE = 'scripts/show-gnu-make'
382 U-Boot needs GNU Make for building, but the command name is not
415 '-' to read the list from stdin
421 if defconfigs_file == '-':
456 # Otherwise, additional whitespace or line-feed might be printed.
477 if line[0] == '-' and line[1] != '-':
514 if p.search(lines[i - 1]):
528 extended_matched.append(i - 1)
550 """Clean regex-matched lines away from a file.
563 if i - 1 in matched and lines[i - 1][-2:] == '\\\n':
655 old_tokens = line[len(start):-len(end)].split(',')
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'
1036 def __init__(self, toolchains, configs, options, progress, devnull, argument
1041 toolchains: Toolchains object containing toolchains.
1051 self.toolchains = toolchains
1170 toolchain = self.toolchains.Select(arch)
1257 # If --exit-on-error flag is not set, skip this board and continue.
1273 return self.suspicious_boards - self.failed_boards
1279 def __init__(self, toolchains, configs, options, progress, argument
1284 toolchains: Toolchains object containing toolchains.
1297 self.slots.append(Slot(toolchains, configs, options, progress,
1385 commit: commit to git-clone
1392 subprocess.check_output(['git', 'rev-parse', '--short', commit]).strip()
1411 def move_config(toolchains, configs, options, db_queue): argument
1424 print 'Neither CONFIG nor --force-sync is specified. Nothing will happen.',
1441 slots = Slots(toolchains, configs, options, progress, reference_src_dir,
1511 if data[linenum - 1] != 'config %s' % imply_config:
1528 linenum -= 1
1546 'non-arch-board': [
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
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
1706 missing = defconfigs - imply_configs[iconfig]
1746 print '%5d : %-30s%-25s %s' % (num_common, iconfig.ljust(30),
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',
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',
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,
1825 imply_flags = -1
1835 print ' %-15s: %s' % (name, info[1])
1853 toolchains = toolchain.Toolchains()
1854 toolchains.GetSettings()
1855 toolchains.Scan(verbose=False)
1856 move_config(toolchains, configs, options, db_queue)
1866 subprocess.call(['git', 'add', '-u'])
1875 subprocess.call(['git', 'commit', '-s', '-m', msg])