Lines Matching +full:cmd +full:- +full:db

2 # SPDX-License-Identifier: GPL-2.0+
10 Since Kconfig was introduced to U-Boot, we have worked on moving
17 -----
45 - Move 'CONFIG_... '
48 - CONFIG_... is not defined in Kconfig. Do nothing.
52 - CONFIG_... is not defined in Kconfig (suspicious). Do nothing.
56 - You forgot to create an entry for the CONFIG before running
58 - The entry was hidden due to unmet 'depends on'.
62 - 'CONFIG_...' is the same as the define in Kconfig. Do nothing.
66 - Compiler is missing. Do nothing.
69 (If -e option is passed, the tool exits immediately.)
71 - Failed to process.
73 (If -e option is passed, the tool exits immediately on error.)
84 -----------------
97 For faster processing, this tool handles multi-threading. It creates
98 separate build directories where the out-of-tree build is run. The
101 cores of your system although you can change it via -j (--jobs) option.
105 ----------
108 for all the architectures supported by U-Boot. Most of them are available
110 the same tools as buildman, so see that tool for setup (e.g. --fetch-arch).
114 --------------
118 ./tools/moveconfig.py -s -d <(grep -l X86 configs/*)
122 grep -l X86 configs/* | ./tools/moveconfig.py -s -d -
127 ./tools/moveconfig.py -Cy CONFIG_CMD_FPGAD -d -
131 -----------------------
141 ./tools/moveconfig.py -b
145 ./tools/moveconfig.py -i CONFIG_CMD_IRQ
192 You can automatically add 'imply' statements in the Kconfig with the -a
195 ./tools/moveconfig.py -s -i CONFIG_SCSI \
196 -a CONFIG_ARCH_LS1021A,CONFIG_ARCH_LS1043A
205 13 : CONFIG_ARCH_LS1043A arch/arm/cpu/armv8/fsl-layerscape/Kconfig:11
206 12 : CONFIG_ARCH_LS1046A arch/arm/cpu/armv8/fsl-layerscape/Kconfig:31
217 ./tools/moveconfig.py -s -i CONFIG_SCSI -a all
219 To control which ones are displayed, use -I <list> where list is a list of
220 options (use '-I help' to see possible options and their meaning).
222 To skip showing you options that already have an 'imply' attached, use -A.
227 git show --stat | ./tools/moveconfig.py -s -d -
236 -----------------
238 -c, --color
242 -C, --commit
246 -d, --defconfigs
248 files can be given with shell-style wildcards. Use '-' to read from stdin.
250 -n, --dry-run
254 -e, --exit-on-error
255 Exit immediately if Make exits with a non-zero status while processing
258 -s, --force-sync
263 -S, --spl
269 -H, --headers-only
272 -j, --jobs
276 -r, --git-ref
280 before that change was in effect. If in doubt, specify a ref pre-Kconfig
284 -v, --verbose
287 -y, --yes
294 $ tools/moveconfig.py -h
322 SHOW_GNU_MAKE = 'scripts/show-gnu-make'
353 CONFIG_DATABASE = 'moveconfig.db'
381 U-Boot needs GNU Make for building, but the command name is not
414 '-' to read the list from stdin
420 if defconfigs_file == '-':
455 # Otherwise, additional whitespace or line-feed might be printed.
476 if line[0] == '-' and line[1] != '-':
513 if p.search(lines[i - 1]):
527 extended_matched.append(i - 1)
571 """Clean regex-matched lines away from a file.
584 if i - 1 in matched and lines[i - 1][-2:] == '\\\n':
677 old_tokens = line[len(start):-len(end)].split(',')
862 # fix-up for aarch64
906 if old_val[-2:] != '=y' and old_val[-2:] != '=m' and old_val != not_set:
910 if new_val[-2:] == '=y':
911 new_val = new_val[:-1] + '1'
1180 cmd = list(self.make_cmd)
1181 cmd.append(self.defconfig)
1182 self.ps = subprocess.Popen(cmd, stdout=self.devnull,
1200 cmd = list(self.make_cmd)
1201 cmd.append('KCONFIG_IGNORE_DUPLICATES=1')
1202 cmd.append(AUTO_CONF_PATH)
1203 self.ps = subprocess.Popen(cmd, stdout=self.devnull, env=env,
1236 cmd = list(self.make_cmd)
1237 cmd.append('savedefconfig')
1238 self.ps = subprocess.Popen(cmd, stdout=self.devnull,
1279 # If --exit-on-error flag is not set, skip this board and continue.
1295 return self.suspicious_boards - self.failed_boards
1407 commit: commit to git-clone
1414 subprocess.check_output(['git', 'rev-parse', '--short', commit]).strip()
1446 print 'Neither CONFIG nor --force-sync is specified. Nothing will happen.',
1533 if data[linenum - 1] != 'config %s' % imply_config:
1550 linenum -= 1
1567 'cmd': [IMPLY_CMD, 'Allow CONFIG_CMD_... to imply'],
1568 'non-arch-board': [
1590 - Get the set 'defconfigs' which use that target config
1591 - For each config (from a list of all configs):
1592 - Get the set 'imply_defconfig' of defconfigs which use that config
1593 -
1594 - If imply_defconfigs contains anything not in defconfigs then
1612 config - a CONFIG_XXX options (a string, e.g. 'CONFIG_CMD_EEPROM')
1613 defconfig - a defconfig file (a string, e.g. 'configs/snow_defconfig')
1658 non_defconfigs = all_defconfigs - defconfigs
1665 rest_configs = all_configs - set([config])
1686 # also contain the taret config. If this set is non-empty it means
1728 missing = defconfigs - imply_configs[iconfig]
1768 print '%5d : %-30s%-25s %s' % (num_common, iconfig.ljust(30),
1789 parser.add_option('-a', '--add-imply', type='string', default='',
1790 help='comma-separated list of CONFIG options to add '
1791 "an 'imply' statement to for the CONFIG in -i")
1792 parser.add_option('-A', '--skip-added', action='store_true', default=False,
1795 parser.add_option('-b', '--build-db', action='store_true', default=False,
1797 parser.add_option('-c', '--color', action='store_true', default=False,
1799 parser.add_option('-C', '--commit', action='store_true', default=False,
1801 parser.add_option('-d', '--defconfigs', type='string',
1804 "or '-' to read from stdin")
1805 parser.add_option('-i', '--imply', action='store_true', default=False,
1807 parser.add_option('-I', '--imply-flags', type='string', default='',
1808 help="control the -i option ('help' for help")
1809 parser.add_option('-n', '--dry-run', action='store_true', default=False,
1811 parser.add_option('-e', '--exit-on-error', action='store_true',
1814 parser.add_option('-s', '--force-sync', action='store_true', default=False,
1816 parser.add_option('-S', '--spl', action='store_true', default=False,
1818 parser.add_option('-H', '--headers-only', dest='cleanup_headers_only',
1821 parser.add_option('-j', '--jobs', type='int', default=cpu_count,
1823 parser.add_option('-r', '--git-ref', type='string',
1825 parser.add_option('-y', '--yes', action='store_true', default=False,
1827 parser.add_option('-v', '--verbose', action='store_true', default=False,
1847 imply_flags = -1
1857 print ' %-15s: %s' % (name, info[1])
1888 subprocess.call(['git', 'add', '-u'])
1897 subprocess.call(['git', 'commit', '-s', '-m', msg])