Skip to content

Commit

Permalink
Arduino compile part
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Sep 30, 2024
1 parent b11397f commit 083fa92
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1871,6 +1871,29 @@ def _parse_size(value):

env.Replace(ESP32_APP_OFFSET=str(hex(bound)))

try:
print("Custom Pio sdkconfig", env.GetProjectOption("custom_sdkconfig").splitlines())
if env.GetProjectOption("custom_sdkconfig").splitlines():
print("Starting Arduino compile run")
env.GetProjectOption("custom_sdkconfig").clear()
print("custom sdkconfig", env.GetProjectOption("custom_sdkconfig"))
PROJECT_SRC_DIR = ORIG_PROJECT_SRC_DIR
env.Replace(
PROJECT_SRC_DIR=ORIG_PROJECT_SRC_DIR,
BUILD_FLAGS=ORIG_BUILD_FLAGS,
BUILD_UNFLAGS=ORIG_BUILD_UNFLAGS,
LINKFLAGS=ORIG_LINKFLAGS,
PIOFRAMEWORK="arduino"
)
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.subst("$LINKFLAGS"))
print("Pio framework", env.get("PIOFRAMEWORK"))
env.SConscript("arduino.py", exports="env")
except:
pass

#
# Propagate application offset to debug configurations
#
Expand Down

0 comments on commit 083fa92

Please sign in to comment.