Unverified Commit bfed6eb0 authored by Ivan Kravets's avatar Ivan Kravets Committed by GitHub

Allow to pass a custom partition table

parent 68265084
......@@ -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"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment