mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 17:18:24 +00:00
Add scons --pyconfig command for configure project.
This commit is contained in:
@@ -335,6 +335,16 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
|
||||
menuconfig(Rtt_Root)
|
||||
exit(0)
|
||||
|
||||
AddOption('--pyconfig',
|
||||
dest = 'pyconfig',
|
||||
action = 'store_true',
|
||||
default = False,
|
||||
help = 'make menuconfig for RT-Thread BSP')
|
||||
if GetOption('pyconfig'):
|
||||
from menuconfig import pyconfig
|
||||
pyconfig(Rtt_Root)
|
||||
exit(0)
|
||||
|
||||
configfn = GetOption('useconfig')
|
||||
if configfn:
|
||||
from menuconfig import mk_rtconfig
|
||||
|
||||
Reference in New Issue
Block a user