Skip to content

Commit 031f4cb

Browse files
committed
Absolute CPPPATH instead BUILD_DIR; better output without verbose
1 parent 3ef4c78 commit 031f4cb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

builder/frameworks/arduino.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
CPPPATH=[
4242
join(FRAMEWORK_DIR, "tools", "sdk", "include"),
4343
join(FRAMEWORK_DIR, "tools", "sdk", "lwip", "include"),
44-
join("$BUILD_DIR", "FrameworkArduino")
44+
join(FRAMEWORK_DIR, "cores", env.BoardConfig().get("build.core"))
4545
],
4646
LIBPATH=[join(FRAMEWORK_DIR, "tools", "sdk", "lib")],
4747
LIBS=[
@@ -57,11 +57,6 @@
5757
]
5858
)
5959

60-
env.VariantDirWrap(
61-
join("$BUILD_DIR", "generic"),
62-
join(FRAMEWORK_DIR, "variants", "generic")
63-
)
64-
6560
#
6661
# Target: Build Core Library
6762
#
@@ -71,7 +66,8 @@
7166
if "build.variant" in env.BoardConfig():
7267
env.Append(
7368
CPPPATH=[
74-
join("$BUILD_DIR", "FrameworkArduinoVariant")
69+
join(FRAMEWORK_DIR, "variants",
70+
env.BoardConfig().get("build.variant"))
7571
]
7672
)
7773
libs.append(env.BuildLibrary(

0 commit comments

Comments
 (0)