forked from Mirror/pmbootstrap
kconfig migrate: new option to migrate kernel configs (MR 2111)
With this option you can run $ pmbootstrap kconfig migrate --arch <arch> linux-postmarketos-xxx-xxx to perform safe kconfig upgrades between kernel releases. "make oldconfig" will ask question for every new/renamed kconfig option, so you have no chance to miss anything.
This commit is contained in:
parent
37c390aeed
commit
48c85cdc1f
3 changed files with 32 additions and 14 deletions
|
@ -457,6 +457,17 @@ def arguments_kconfig(subparser):
|
|||
if argcomplete:
|
||||
edit_package.completer = kernel_completer
|
||||
|
||||
# "pmbootstrap kconfig migrate"
|
||||
migrate = sub.add_parser("migrate",
|
||||
help="Migrate kconfig from older version to "
|
||||
"newer. Internally runs 'make oldconfig', "
|
||||
"which asks question for every new kernel "
|
||||
"config option.")
|
||||
migrate.add_argument("--arch", choices=arch_choices, dest="arch")
|
||||
migrate_package = migrate.add_argument("package", nargs='?')
|
||||
if argcomplete:
|
||||
migrate_package.completer = kernel_completer
|
||||
|
||||
|
||||
def arguments_repo_missing(subparser):
|
||||
ret = subparser.add_parser("repo_missing")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue