forked from Mirror/pmbootstrap
kconfig edit: nconfig support (MR 2034)
This commit is contained in:
parent
8db2ab71b2
commit
2b17e6ab71
2 changed files with 8 additions and 2 deletions
|
@ -106,6 +106,9 @@ def menuconfig(args, pkgname):
|
|||
depends += ["gtk+2.0-dev", "glib-dev", "libglade-dev", "font-noto"]
|
||||
kopt = "gconfig"
|
||||
copy_xauth = True
|
||||
elif args.nconfig:
|
||||
kopt = "nconfig"
|
||||
depends += ["ncurses-dev"]
|
||||
else:
|
||||
depends += ["ncurses-dev"]
|
||||
pmb.chroot.apk.install(args, depends)
|
||||
|
|
|
@ -435,10 +435,13 @@ def arguments_kconfig(subparser):
|
|||
edit = sub.add_parser("edit", help="edit kernel aport config")
|
||||
edit.add_argument("--arch", choices=arch_choices, dest="arch")
|
||||
edit.add_argument("-x", dest="xconfig", action="store_true",
|
||||
help="use xconfig rather than ncurses for kernel"
|
||||
help="use xconfig rather than menuconfig for kernel"
|
||||
" configuration")
|
||||
edit.add_argument("-g", dest="gconfig", action="store_true",
|
||||
help="use gconfig rather than ncurses for kernel"
|
||||
help="use gconfig rather than menuconfig for kernel"
|
||||
" configuration")
|
||||
edit.add_argument("-n", dest="nconfig", action="store_true",
|
||||
help="use nconfig rather than menuconfig for kernel"
|
||||
" configuration")
|
||||
edit_package = edit.add_argument("package", nargs='?')
|
||||
if argcomplete:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue