Allow to pass a custom partition table
This commit is contained in:
parent
68265084b1
commit
bfed6eb072
@ -181,10 +181,18 @@ env.Prepend(LIBS=libs)
|
|||||||
#
|
#
|
||||||
# Generate partition table
|
# Generate partition table
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Export path to the partitions table
|
||||||
|
env.Replace(
|
||||||
|
PARTITION_TABLE_CSV=join(
|
||||||
|
FRAMEWORK_DIR, "tools", "partitions",
|
||||||
|
"%s.csv" % env.BoardConfig().get("build.partitions", "default")
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
partition_table = env.Command(
|
partition_table = env.Command(
|
||||||
join("$BUILD_DIR", "partitions.bin"),
|
join("$BUILD_DIR", "partitions.bin"),
|
||||||
join(FRAMEWORK_DIR, "tools", "partitions",
|
"$PARTITION_TABLE_CSV",
|
||||||
"%s.csv" % env.BoardConfig().get("build.partitions", "default")),
|
|
||||||
env.VerboseAction('"$PYTHONEXE" "%s" -q $SOURCE $TARGET' % join(
|
env.VerboseAction('"$PYTHONEXE" "%s" -q $SOURCE $TARGET' % join(
|
||||||
FRAMEWORK_DIR, "tools", "gen_esp32part.py"),
|
FRAMEWORK_DIR, "tools", "gen_esp32part.py"),
|
||||||
"Generating partitions $TARGET"))
|
"Generating partitions $TARGET"))
|
||||||
|
Loading…
Reference in New Issue
Block a user