Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
ebb41235
Unverified
Commit
ebb41235
authored
Aug 04, 2023
by
Me No Dev
Committed by
GitHub
Aug 04, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into release/v2.x
parents
ae9dae4a
bde2d643
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
tools/platformio-build.py
tools/platformio-build.py
+7
-2
No files found.
tools/platformio-build.py
View file @
ebb41235
...
...
@@ -172,6 +172,10 @@ SConscript(
# Target: Build Core Library
#
# Set -DARDUINO_CORE_BUILD only for the core library
corelib_env
=
env
.
Clone
()
corelib_env
.
Append
(
CPPDEFINES
=
[
"ARDUINO_CORE_BUILD"
])
libs
=
[]
variants_dir
=
join
(
FRAMEWORK_DIR
,
"variants"
)
...
...
@@ -181,13 +185,14 @@ if "build.variants_dir" in board_config:
if
"build.variant"
in
board_config
:
env
.
Append
(
CPPPATH
=
[
join
(
variants_dir
,
board_config
.
get
(
"build.variant"
))])
env
.
BuildSources
(
corelib_env
.
Append
(
CPPPATH
=
[
join
(
variants_dir
,
board_config
.
get
(
"build.variant"
))])
corelib_env
.
BuildSources
(
join
(
"$BUILD_DIR"
,
"FrameworkArduinoVariant"
),
join
(
variants_dir
,
board_config
.
get
(
"build.variant"
)),
)
libs
.
append
(
env
.
BuildLibrary
(
corelib_
env
.
BuildLibrary
(
join
(
"$BUILD_DIR"
,
"FrameworkArduino"
),
join
(
FRAMEWORK_DIR
,
"cores"
,
board_config
.
get
(
"build.core"
)),
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment