mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 00:45:22 +08:00
[tools] add menuconfig GUI by python.
This commit is contained in:
@@ -377,12 +377,17 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
|
||||
dest = 'pyconfig',
|
||||
action = 'store_true',
|
||||
default = False,
|
||||
help = 'make menuconfig for RT-Thread BSP')
|
||||
help = 'Python ASCII menuconfig for RT-Thread BSP')
|
||||
AddOption('--pyconfig-silent',
|
||||
dest = 'pyconfig_silent',
|
||||
action = 'store_true',
|
||||
default = False,
|
||||
help = 'Don`t show pyconfig window')
|
||||
AddOption('--guiconfig',
|
||||
dest = 'guiconfig',
|
||||
action = 'store_true',
|
||||
default = False,
|
||||
help = 'Python GUI menuconfig for RT-Thread BSP')
|
||||
|
||||
if GetOption('pyconfig_silent'):
|
||||
from menuconfig import pyconfig_silent
|
||||
@@ -394,6 +399,11 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
|
||||
|
||||
pyconfig(Rtt_Root)
|
||||
exit(0)
|
||||
elif GetOption('guiconfig'):
|
||||
from menuconfig import guiconfig
|
||||
|
||||
guiconfig(Rtt_Root)
|
||||
exit(0)
|
||||
|
||||
configfn = GetOption('useconfig')
|
||||
if configfn:
|
||||
|
||||
Reference in New Issue
Block a user