mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 18:54:28 +05:00
upd build script
This commit is contained in:
3
build.py
3
build.py
@@ -3,6 +3,9 @@ import os
|
|||||||
Import("env")
|
Import("env")
|
||||||
|
|
||||||
def post_build(source, target, env):
|
def post_build(source, target, env):
|
||||||
|
if os.path.exists(os.path.join(env["PROJECT_DIR"], "build")) == False:
|
||||||
|
return
|
||||||
|
|
||||||
src = target[0].get_abspath()
|
src = target[0].get_abspath()
|
||||||
dest = os.path.join(env["PROJECT_DIR"], "build", "firmware_%s_%s.bin" % (env.GetProjectOption("board"), env.GetProjectOption("version")))
|
dest = os.path.join(env["PROJECT_DIR"], "build", "firmware_%s_%s.bin" % (env.GetProjectOption("board"), env.GetProjectOption("version")))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user