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
9570b77a
Commit
9570b77a
authored
May 26, 2018
by
Ivan Kravets
Committed by
Me No Dev
May 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Custom Partition Tables for @PlatformIO (#1440)
parent
e7338998
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
tools/platformio-build.py
tools/platformio-build.py
+6
-8
No files found.
tools/platformio-build.py
View file @
9570b77a
...
...
@@ -24,7 +24,7 @@ http://arduino.cc/en/Reference/HomePage
# Extends: https://github.com/platformio/platform-espressif32/blob/develop/builder/main.py
from
os.path
import
isdir
,
join
from
os.path
import
isdir
,
isfile
,
join
from
SCons.Script
import
DefaultEnvironment
...
...
@@ -158,17 +158,15 @@ env.Prepend(LIBS=libs)
# Generate partition table
#
# Export path to the partitions table
fwpartitions_dir
=
join
(
FRAMEWORK_DIR
,
"tools"
,
"partitions"
)
partitions_csv
=
env
.
BoardConfig
().
get
(
"build.partitions"
,
"default.csv"
)
env
.
Replace
(
PARTITION_TABLE_CSV
=
join
(
FRAMEWORK_DIR
,
"tools"
,
"partitions"
,
"%s.csv"
%
env
.
BoardConfig
().
get
(
"build.partitions"
,
"default"
)
)
)
PARTITIONS_TABLE_CSV
=
join
(
fwpartitions_dir
,
partitions_csv
)
if
isfile
(
join
(
fwpartitions_dir
,
partitions_csv
))
else
partitions_csv
)
partition_table
=
env
.
Command
(
join
(
"$BUILD_DIR"
,
"partitions.bin"
),
"$PARTITION_TABLE_CSV"
,
"$PARTITION
S
_TABLE_CSV"
,
env
.
VerboseAction
(
'"$PYTHONEXE" "%s" -q $SOURCE $TARGET'
%
join
(
FRAMEWORK_DIR
,
"tools"
,
"gen_esp32part.py"
),
"Generating partitions $TARGET"
))
...
...
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