Skip to content

Commit

Permalink
Update build directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtalat committed Mar 6, 2023
1 parent e509c92 commit 3d58239
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/west_commands/quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ def do_run(self, args, unknown_args):
cmd = cmd + "-DCONFIG_NCE_ENERGY_SAVER=y"
log.inf('1NCE Energy Saver is Enabled')
subprocess.run(cmd,shell=True)
subprocess.run("west flash",shell=True)
subprocess.run("west flash --build-dir build_coap_demo",shell=True)
elif ( (args.protocol is not None and args.protocol.lower() == "udp") ):
log.inf('Building 1NCE UDP Demo')
cmd = cmd + "nce-blueprint/nce_udp_demo --build-dir build_udp_demo "
if((args.energysaving is not None and args.energysaving.lower() == "y")):
cmd = cmd + "-DCONFIG_NCE_ENERGY_SAVER=y"
log.inf('1NCE Energy Saver is Enabled')
subprocess.run(cmd,shell=True)
subprocess.run("west flash",shell=True)
subprocess.run("west flash --build-dir build_udp_demo",shell=True)
elif ( (args.protocol is not None and args.protocol.lower() == "lwm2m") ):
log.inf('Building 1NCE LwM2M Demo')
cmd = cmd + "nce-blueprint/nce_lwm2m_demo --build-dir build_lwm2m_demo "
subprocess.run(cmd,shell=True)
subprocess.run("west flash",shell=True)
subprocess.run("west flash --build-dir build_lwm2m_demo",shell=True)
else :
log.err('Unsupported argument')

0 comments on commit 3d58239

Please sign in to comment.