Skip to content

Commit

Permalink
replace env entrys
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Sep 29, 2024
1 parent a23a4fc commit cae59d9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,17 @@
print("Build Flags", env.subst("$BUILD_FLAGS"))
print("Build UnFlags", env.subst("$BUILD_UNFLAGS"))
print("Source Dir", PROJECT_SRC_DIR)
print("Custom Pio sdkconfig", env.GetProjectOption("custom_sdkconfig").splitlines())
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_PROJECT_SRC_DIR = PROJECT_SRC_DIR
env("$BUILD_FLAGS").clear()
env("$BUILD_UNFLAGS").clear()
PROJECT_SRC_DIR = PROJECT_SRC_DIR.replace("tasmota", "dummy")
except:
pass

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

0 comments on commit cae59d9

Please sign in to comment.