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:
Alexey Min 2021-09-11 11:57:47 +03:00 committed by Oliver Smith
parent 37c390aeed
commit 48c85cdc1f
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
3 changed files with 32 additions and 14 deletions

View file

@ -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")