Allow to pass a custom partition table

This commit is contained in:
Ivan Kravets 2018-05-07 23:47:22 +03:00 committed by GitHub
parent 68265084b1
commit bfed6eb072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"))