Skip to content

Commit

Permalink
Update espidf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Sep 30, 2024
1 parent 89397e8 commit faa713f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,27 +111,33 @@

print("Build Flags", env.subst("$BUILD_FLAGS"))
print("Build UnFlags", env.subst("$BUILD_UNFLAGS"))
print("Link flags", env["LINKFLAGS"])
print("Link flags", env.subst("$LINKFLAGS"))

try:
print("Custom Pio sdkconfig", env.GetProjectOption("custom_sdkconfig").splitlines())
if env.GetProjectOption("custom_sdkconfig").splitlines():
ORIG_BUILD_FLAGS = env.subst("$BUILD_FLAGS")
ORIG_BUILD_UNFLAGS = env.subst("$BUILD_UNFLAGS")
ORIG_LINKFLAGS = env.subst("$LINKFLAGS")
ORIG_PROJECT_SRC_DIR = PROJECT_SRC_DIR
env.GetProjectOption("build_flags").clear()
env.GetProjectOption("build_unflags").clear()
env.GetProjectOption("linkflags").clear()
PROJECT_SRC_DIR = PROJECT_SRC_DIR.replace("tasmota", "dummy")
env.Replace(
PROJECT_SRC_DIR=PROJECT_SRC_DIR,
BUILD_FLAGS="",
BUILD_UNFLAGS="",
LINKFLAGS="",
)
except:
pass
print("Source Dir", env.subst("$PROJECT_SRC_DIR"))
print("Build Flags", env.subst("$BUILD_FLAGS"))
print("Build UnFlags", env.subst("$BUILD_UNFLAGS"))

print("Link flags", env["LINKFLAGS"])
print("Link flags", env.subst("$LINKFLAGS"))

def get_project_lib_includes(env):
project = ProjectAsLibBuilder(env, "$PROJECT_DIR")
Expand Down

0 comments on commit faa713f

Please sign in to comment.