diff --git a/platformio.ini b/platformio.ini index ab7e463..4fb7d33 100644 --- a/platformio.ini +++ b/platformio.ini @@ -115,7 +115,7 @@ extra_scripts = script/create_versionjson.py build_unflags = ${common_env_data.build_unflags} build_flags = - ${common_env_data.build_flags} + ${common_env_data.build_flags} -D COLLECT_PERFDATA -D LOG_LEVEL=5 lib_deps = @@ -159,6 +159,32 @@ board_build.partitions = part32.csv board_build.filesystem = littlefs monitor_filters = esp32_exception_decoder +[env:gravity32-perf] +framework = arduino +platform = espressif32 +upload_speed = ${common_env_data.upload_speed} +monitor_speed = ${common_env_data.monitor_speed} +extra_scripts = + script/copy_html.py + script/copy_firmware.py + script/create_versionjson.py +build_unflags = + ${common_env_data.build_unflags} +build_flags = + -Wl,-Map,output.map + ${common_env_data.build_flags} + -D COLLECT_PERFDATA + -D LOG_LEVEL=5 +lib_deps = + ${common_env_data.lib_deps} + https://github.com/lorol/LITTLEFS#1.0.6 + https://github.com/h2zero/NimBLE-Arduino#1.3.7 +board = featheresp32 +build_type = release +board_build.partitions = part32.csv +board_build.filesystem = littlefs +monitor_filters = esp32_exception_decoder + [env:gravity32-release2] framework = arduino #platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.2.3/platform-espressif32-2.0.2.3.zip # build fails diff --git a/script/copy_firmware.py b/script/copy_firmware.py index e25edf0..b23b2d3 100644 --- a/script/copy_firmware.py +++ b/script/copy_firmware.py @@ -20,6 +20,8 @@ def after_build(source, target, env): target = dir + "/bin/firmware-perf.bin" if name == "gravity32-release" : target = dir + "/bin/firmware32.bin" + if name == "gravity32-perf" : + target = dir + "/bin/firmware32-perf.bin" if name == "gravity32-release2" : target = dir + "/bin/firmware32_2.bin" print( "Copy file : " + source + " -> " + target )