diff --git a/pmb/helpers/frontend.py b/pmb/helpers/frontend.py index 4de25663..8986bffe 100644 --- a/pmb/helpers/frontend.py +++ b/pmb/helpers/frontend.py @@ -365,7 +365,11 @@ def kconfig(args): " (consider 'pmbootstrap kconfig check -f')") logging.info("kconfig check succeeded!") elif args.action_kconfig == "edit": - pmb.build.menuconfig(args, args.package) + if args.package: + pkgname = args.package + else: + pkgname = args.deviceinfo["codename"] + pmb.build.menuconfig(args, pkgname) def deviceinfo_parse(args): diff --git a/pmb/parse/arguments.py b/pmb/parse/arguments.py index 9ff7f095..0d7a8dae 100644 --- a/pmb/parse/arguments.py +++ b/pmb/parse/arguments.py @@ -380,7 +380,7 @@ def arguments_kconfig(subparser): edit.add_argument("-g", dest="gconfig", action="store_true", help="use gconfig rather than ncurses for kernel" " configuration") - edit_package = edit.add_argument("package") + edit_package = edit.add_argument("package", nargs='?') if argcomplete: edit_package.completer = kernel_completer