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
|
||||
#
|
||||
|
||||
# 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(
|
||||
join("$BUILD_DIR", "partitions.bin"),
|
||||
join(FRAMEWORK_DIR, "tools", "partitions",
|
||||
"%s.csv" % env.BoardConfig().get("build.partitions", "default")),
|
||||
"$PARTITION_TABLE_CSV",
|
||||
env.VerboseAction('"$PYTHONEXE" "%s" -q $SOURCE $TARGET' % join(
|
||||
FRAMEWORK_DIR, "tools", "gen_esp32part.py"),
|
||||
"Generating partitions $TARGET"))
|
||||
|
Loading…
Reference in New Issue
Block a user