mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-12 03:04:27 +05:00
added build functions
This commit is contained in:
14
build.py
Normal file
14
build.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import shutil
|
||||
import os
|
||||
Import("env")
|
||||
|
||||
def post_build(source, target, env):
|
||||
src = target[0].get_abspath()
|
||||
dest = os.path.join(env["PROJECT_DIR"], "build", "firmware_%s_%s.bin" % (env.GetProjectOption("board"), env.GetProjectOption("version")))
|
||||
|
||||
#print("dest:"+dest)
|
||||
#print("source:"+src)
|
||||
|
||||
shutil.copy(src, dest)
|
||||
|
||||
env.AddPostAction("$BUILD_DIR/firmware.bin", post_build)
|
||||
Reference in New Issue
Block a user