Sync flags with platform.txt; Custom partitions per board (#875)
* Sync flags with platform.txt * Add support for custom partitions per board * Add "-fstack-protector" to CCFLAGS
This commit is contained in:
parent
a907113ba2
commit
8eecfd21b4
@ -36,16 +36,19 @@ assert isdir(FRAMEWORK_DIR)
|
||||
|
||||
env.Prepend(
|
||||
CPPDEFINES=[
|
||||
("ARDUINO", 10610),
|
||||
"ARDUINO_ARCH_ESP32"
|
||||
("ARDUINO", 10805),
|
||||
"ARDUINO_ARCH_ESP32",
|
||||
("ARDUINO_BOARD", '\\"%s\\"' % env.BoardConfig().get("name").replace('"', ""))
|
||||
],
|
||||
|
||||
CFLAGS=["-Wno-old-style-declaration"],
|
||||
|
||||
CCFLAGS=[
|
||||
"-Wno-error=deprecated-declarations",
|
||||
"-Wno-error=unused-function",
|
||||
"-Wno-unused-parameter",
|
||||
"-Wno-sign-compare"
|
||||
"-Wno-sign-compare",
|
||||
"-fstack-protector"
|
||||
],
|
||||
|
||||
CPPPATH=[
|
||||
@ -174,11 +177,11 @@ env.Prepend(LIBS=libs)
|
||||
#
|
||||
# Generate partition table
|
||||
#
|
||||
|
||||
partition_table = env.Command(
|
||||
join("$BUILD_DIR", "partitions.bin"),
|
||||
join(FRAMEWORK_DIR, "tools", "partitions", "default.csv"),
|
||||
env.VerboseAction('"$PYTHONEXE" "%s" -q $SOURCE $TARGET' %
|
||||
join(FRAMEWORK_DIR, "tools", "gen_esp32part.py"),
|
||||
join(FRAMEWORK_DIR, "tools", "partitions",
|
||||
"%s.csv" % env.BoardConfig().get("build.partitions", "default")),
|
||||
env.VerboseAction('"$PYTHONEXE" "%s" -q $SOURCE $TARGET' % join(
|
||||
FRAMEWORK_DIR, "tools", "gen_esp32part.py"),
|
||||
"Generating partitions $TARGET"))
|
||||
env.Depends("$BUILD_DIR/$PROGNAME$PROGSUFFIX", partition_table)
|
||||
|
Loading…
Reference in New Issue
Block a user