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
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue