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
89859f7f
Commit
89859f7f
authored
May 31, 2018
by
Ivan Kravets
Committed by
Me No Dev
May 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Calculate an absolute path for a custom partitions table (#1452)
parent
a7b627cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
tools/platformio-build.py
tools/platformio-build.py
+4
-3
No files found.
tools/platformio-build.py
View file @
89859f7f
...
@@ -24,7 +24,7 @@ http://arduino.cc/en/Reference/HomePage
...
@@ -24,7 +24,7 @@ http://arduino.cc/en/Reference/HomePage
# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py
# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py
from
os.path
import
isdir
,
isfile
,
join
from
os.path
import
abspath
,
isdir
,
isfile
,
join
from
SCons.Script
import
DefaultEnvironment
from
SCons.Script
import
DefaultEnvironment
...
@@ -161,8 +161,9 @@ env.Prepend(LIBS=libs)
...
@@ -161,8 +161,9 @@ env.Prepend(LIBS=libs)
fwpartitions_dir
=
join
(
FRAMEWORK_DIR
,
"tools"
,
"partitions"
)
fwpartitions_dir
=
join
(
FRAMEWORK_DIR
,
"tools"
,
"partitions"
)
partitions_csv
=
env
.
BoardConfig
().
get
(
"build.partitions"
,
"default.csv"
)
partitions_csv
=
env
.
BoardConfig
().
get
(
"build.partitions"
,
"default.csv"
)
env
.
Replace
(
env
.
Replace
(
PARTITIONS_TABLE_CSV
=
join
(
fwpartitions_dir
,
partitions_csv
)
if
isfile
(
PARTITIONS_TABLE_CSV
=
abspath
(
join
(
fwpartitions_dir
,
partitions_csv
))
else
partitions_csv
)
join
(
fwpartitions_dir
,
partitions_csv
)
if
isfile
(
join
(
fwpartitions_dir
,
partitions_csv
))
else
partitions_csv
))
partition_table
=
env
.
Command
(
partition_table
=
env
.
Command
(
join
(
"$BUILD_DIR"
,
"partitions.bin"
),
join
(
"$BUILD_DIR"
,
"partitions.bin"
),
...
...
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