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

@ -417,12 +417,13 @@ def kconfig(args):
logging.info("NOTE: " + str(skipped) + " kernel(s) was skipped"
" (consider 'pmbootstrap kconfig check -f')")
logging.info("kconfig check succeeded!")
elif args.action_kconfig == "edit":
elif args.action_kconfig in ["edit", "migrate"]:
if args.package:
pkgname = args.package
else:
pkgname = args.deviceinfo["codename"]
pmb.build.menuconfig(args, pkgname)
use_oldconfig = args.action_kconfig == "migrate"
pmb.build.menuconfig(args, pkgname, use_oldconfig)
def deviceinfo_parse(args):