@@ -80,8 +80,7 @@ def get_network_config(workers):
8080# General build arguments
8181parser .add_argument ("-v" , "--verbose" , action = "store_true" ,
8282 help = "increase output verbosity" )
83- parser .add_argument ("-n" , "--norun" , action = "store_true" ,
84- help = "Only build, don't run" )
83+
8584parser .add_argument ("-r" , "--release" , action = "store_true" ,
8685 help = "Do a release build." )
8786parser .add_argument ("--kfeatures" , type = str , nargs = '+' , default = [],
@@ -97,6 +96,12 @@ def get_network_config(workers):
9796parser .add_argument ("--machine" ,
9897 help = 'Which machine to run on (defaults to qemu)' , required = False , default = 'qemu' )
9998
99+ parser_tasks_mut = parser .add_mutually_exclusive_group (required = False )
100+ parser_tasks_mut .add_argument ("-n" , "--norun" , action = "store_true" , default = False ,
101+ help = "Only build, don't run" )
102+ parser_tasks_mut .add_argument ("-b" , "--nobuild" , action = "store_true" , default = False ,
103+ help = "Only run, don't build" )
104+
100105
101106# DCM Scheduler arguments
102107parser .add_argument ("--dcm-path" ,
@@ -812,11 +817,12 @@ def configure_dcm_scheduler(args):
812817 # Minimize python exception backtraces
813818 sys .excepthook = exception_handler
814819
815- # Build
816- build_bootloader (args )
817- build_kernel (args )
818- build_user_libraries (args )
819- build_userspace (args )
820+ if not args .nobuild :
821+ # Build
822+ build_bootloader (args )
823+ build_kernel (args )
824+ build_user_libraries (args )
825+ build_userspace (args )
820826
821827 # Deploy
822828 deploy (args )
0 commit comments