mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-27 19:57:38 +00:00
[Build] Delete ESP8266 concatenated temp file
This commit is contained in:
@@ -84,3 +84,5 @@ sdkconfig.defaults
|
||||
dependencies.lock
|
||||
|
||||
.dummy/
|
||||
|
||||
.cache/
|
||||
|
||||
+6
-5
@@ -11,11 +11,12 @@
|
||||
; *********************************************************************;
|
||||
|
||||
[platformio]
|
||||
core_dir = .platformio
|
||||
description = Firmware for ESP82xx/ESP32/ESP32-S2/ESP32-S3/ESP32-C3 for easy IoT deployment of sensors.
|
||||
boards_dir = boards
|
||||
lib_dir = lib
|
||||
extra_configs =
|
||||
core_dir = .platformio
|
||||
description = Firmware for ESP82xx/ESP32/ESP32-S2/ESP32-S3/ESP32-C3 for easy IoT deployment of sensors.
|
||||
boards_dir = boards
|
||||
lib_dir = lib
|
||||
build_cache_dir = .cache
|
||||
extra_configs =
|
||||
platformio_core_defs.ini
|
||||
platformio_esp82xx_base.ini
|
||||
platformio_esp82xx_envs.ini
|
||||
|
||||
@@ -10,7 +10,8 @@ extends = common, core_esp32_IDF5_1_4__3_1_0_SPIFFS
|
||||
upload_speed = 460800
|
||||
upload_before_reset = default_reset
|
||||
upload_after_reset = hard_reset
|
||||
extra_scripts = post:tools/pio/post_esp32.py
|
||||
extra_scripts = pre:tools/pio/pre_esp32.py
|
||||
post:tools/pio/post_esp32.py
|
||||
${extra_scripts_default.extra_scripts}
|
||||
; you can disable debug linker flag to reduce binary size (comment out line below), but the backtraces will become less readable
|
||||
; tools/pio/extra_linker_flags.py
|
||||
@@ -38,7 +39,8 @@ extends = common, core_esp32_IDF5_3_2__3_1_0_LittleFS
|
||||
upload_speed = 460800
|
||||
upload_before_reset = default_reset
|
||||
upload_after_reset = hard_reset
|
||||
extra_scripts = post:tools/pio/post_esp32.py
|
||||
extra_scripts = pre:tools/pio/pre_esp32.py
|
||||
post:tools/pio/post_esp32.py
|
||||
${extra_scripts_default.extra_scripts}
|
||||
; you can disable debug linker flag to reduce binary size (comment out line below), but the backtraces will become less readable
|
||||
; tools/pio/extra_linker_flags.py
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
# Part of ESPEasy build toolchain.
|
||||
#
|
||||
# ESP8266 builds need to concatenate the files to a single .cpp file.
|
||||
# However for ESP32 we should ignore this file.
|
||||
# So when building for ESP32, we simply delete this temporary file.
|
||||
|
||||
Import("env")
|
||||
|
||||
platform = env.PioPlatform()
|
||||
|
||||
import os
|
||||
import glob
|
||||
import filecmp
|
||||
|
||||
|
||||
def delete_concat_cpp_files(paths_to_concat):
|
||||
cpp_files = []
|
||||
|
||||
cpp_path = paths_to_concat[0]
|
||||
|
||||
cpp_path_out = '{}_tmp'.format(cpp_path)
|
||||
|
||||
tmp_cpp_file = os.path.join(cpp_path_out, '__tmpfile.cpp')
|
||||
tmp2_cpp_file = os.path.join(cpp_path_out, '__tmpfile.cpp.test')
|
||||
if os.path.exists(tmp_cpp_file):
|
||||
os.remove(tmp_cpp_file)
|
||||
if os.path.exists(tmp2_cpp_file):
|
||||
os.remove(tmp2_cpp_file)
|
||||
|
||||
|
||||
delete_concat_cpp_files(['./src/src/Commands',
|
||||
'./src/src/ControllerQueue',
|
||||
'./src/src/DataStructs',
|
||||
'./src/src/DataTypes',
|
||||
'./src/src/ESPEasyCore',
|
||||
'./src/src/Globals',
|
||||
'./src/src/Helpers',
|
||||
'./src/src/PluginStructs',
|
||||
'./src/src/WebServer'])
|
||||
Reference in New Issue
Block a user