Make $PROGPATH configurable

This commit is contained in:
Ivan Kravets
2022-07-01 19:29:07 +03:00
parent 1445a91fab
commit d85bc0f7f8
3 changed files with 3 additions and 6 deletions

2
docs

Submodule docs updated: c2b86cce50...ad5bd94f7c

View File

@ -75,10 +75,7 @@ def BuildProgram(env):
env.Prepend(_LIBFLAGS="-Wl,--start-group ")
env.Append(_LIBFLAGS=" -Wl,--end-group")
program = env.Program(
os.path.join("$BUILD_DIR", env.subst("$PROGNAME$PROGSUFFIX")),
env["PIOBUILDFILES"],
)
program = env.Program("$PROGPATH", env["PIOBUILDFILES"])
env.Replace(PIOMAINPROG=program)
AlwaysBuild(

View File

@ -47,7 +47,7 @@ Import("env")
def post_prog_action(source, target, env):
print("post_prog_action is called")
env.AddPostAction("$PROG_PATH", post_prog_action)
env.AddPostAction("$PROGPATH", post_prog_action)
"""
)
tmpdir.join("post_script.py").write(