Skip to content

More refactor #189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 97 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
f7002be
enhance esp-idf-size use
Jason2866 May 26, 2025
2d9ff88
Build the map file always for espidf too
Jason2866 May 26, 2025
4f9e28e
Update espidf.py
Jason2866 May 28, 2025
3c0209e
Create component_manager.py
Jason2866 May 28, 2025
b9dba06
Update component_manager.py
Jason2866 May 28, 2025
6d0d399
Update arduino.py
Jason2866 May 28, 2025
b93c3bf
Update arduino.py
Jason2866 May 28, 2025
c287ddb
Update arduino.py
Jason2866 May 28, 2025
c19d1a0
Update arduino.py
Jason2866 May 29, 2025
cb55e00
Update arduino.py
Jason2866 May 29, 2025
5d892a2
Update component_manager.py
Jason2866 May 29, 2025
7b4ea71
Update component_manager.py
Jason2866 May 29, 2025
fcd889e
Update component_manager.py
Jason2866 May 29, 2025
dff5544
Update espidf.py
Jason2866 May 29, 2025
810ff2f
Update espidf.py
Jason2866 May 29, 2025
3063ee6
C2 always Hybrid Compile
Jason2866 May 29, 2025
d41ade9
set flag for Hybrid Compile for the C2
Jason2866 May 29, 2025
68395eb
Update arduino.py
Jason2866 May 29, 2025
cdcb5c2
Update component_manager.py
Jason2866 May 29, 2025
19ab750
Update arduino.py
Jason2866 May 29, 2025
f2880bc
include path remove with smart components detection logic
Jason2866 May 29, 2025
ccdb040
debug code for not detecting component
Jason2866 May 29, 2025
0a8330a
fix dsp detection
Jason2866 May 29, 2025
c5c8135
Update tasmota_platformio_override.ini
Jason2866 May 29, 2025
1076c0d
remove sophisticated analysis
Jason2866 May 29, 2025
433bb53
Update platformio.ini
Jason2866 May 29, 2025
5db706c
Update platformio.ini
Jason2866 May 29, 2025
10d7da2
Update platformio.ini
Jason2866 May 29, 2025
0010a7c
Update platformio.ini
Jason2866 May 29, 2025
43122e4
refactor platform.
Jason2866 May 29, 2025
4caa805
remove copy&paste error
Jason2866 May 29, 2025
f37d892
add missing import requests
Jason2866 May 29, 2025
eea799f
Update platformio.ini
Jason2866 May 29, 2025
27dfe29
Update component_manager.py
Jason2866 May 29, 2025
d7f29a2
Update espidf.py
Jason2866 May 29, 2025
022ed65
fix potential path traversal vulnerability
Jason2866 May 29, 2025
d5407a6
comment C2 Lib copy
Jason2866 May 29, 2025
90291e7
remove unnecessary c2 lib copy
Jason2866 May 29, 2025
1740f77
fix sdk_dir
Jason2866 May 29, 2025
dae7f84
refactor components add and remove
Jason2866 May 30, 2025
ca70144
always call ComponentManager()
Jason2866 May 30, 2025
2122614
add logging
Jason2866 May 30, 2025
ee04c7d
revert not intended logic change
Jason2866 May 30, 2025
358d1be
Update component_manager.py
Jason2866 May 30, 2025
efac91c
refactor backup of components yml and pioarduino-build.py
Jason2866 May 30, 2025
1249333
revert: backup of refactor yml and pioarduino-build.py
Jason2866 May 30, 2025
bd947d8
make PATH_LENGTH_THRESHOLD configurable
Jason2866 May 30, 2025
493f298
fix dfu-util install
Jason2866 May 30, 2025
da5225d
move import sys
Jason2866 May 30, 2025
1b4c460
create function create_silent_action()
Jason2866 May 30, 2025
5adc2c5
more compatible
Jason2866 May 30, 2025
bb67bf8
minor changes
Jason2866 May 30, 2025
3c7e002
normalize path -> case-insensitive comparison on Windows
Jason2866 May 30, 2025
95f9c2e
rm unused class ToolInstallationError()
Jason2866 May 30, 2025
2f8fbcb
correct check for not existing env
Jason2866 May 30, 2025
898ffbe
revert refactor for solo1 detection
Jason2866 May 30, 2025
5d46279
revert defect refactored code
Jason2866 May 30, 2025
41d239c
fix wrong AI refactoring
Jason2866 May 30, 2025
c72f48b
Update arduino.py
Jason2866 May 30, 2025
6177cc1
Update arduino.py
Jason2866 May 30, 2025
523f970
Update arduino.py
Jason2866 May 30, 2025
a9744d6
Update arduino.py
Jason2866 May 30, 2025
fcff03a
if len(str(board_sdkconfig)) > 2:
Jason2866 May 30, 2025
d225def
Update arduino.py
Jason2866 May 30, 2025
f40322e
fix install dfu-util
Jason2866 May 30, 2025
99dbcfa
remove debug print
Jason2866 May 30, 2025
5463bee
add timeout when request for framework lib fails
Jason2866 May 31, 2025
a099f57
file operation with UTF-8
Jason2866 May 31, 2025
dbc55c4
log error more precisely
Jason2866 May 31, 2025
1ff223a
add path_traversal detection for sdkconfig URL
Jason2866 May 31, 2025
d086262
move imports
Jason2866 May 31, 2025
c105c65
Update main.py
Jason2866 May 31, 2025
f7e09de
add doc string
Jason2866 May 31, 2025
4d700f0
simplify check for existing env "BUILD_UNFLAGS"
Jason2866 May 31, 2025
36cb4b6
fix ident
Jason2866 May 31, 2025
3d6f616
fix import error exception
Jason2866 May 31, 2025
37779c8
remove left overs from move import
Jason2866 May 31, 2025
7b180e6
refactor in smaller (sub) classes
Jason2866 May 31, 2025
c0d2d43
doc strings more detailed
Jason2866 May 31, 2025
3249fdb
formatting Python style conform / rm whitespaces
Jason2866 May 31, 2025
3abef6b
updated doc strings and Python style code formatting
Jason2866 May 31, 2025
3795232
Python style code formatting / adding doc strings
Jason2866 May 31, 2025
1ef3e90
nitpick changes
Jason2866 May 31, 2025
4eaac33
catch possible exception from subprocess more specific
Jason2866 May 31, 2025
798e22a
whitespaces
Jason2866 May 31, 2025
f35b796
simplify logic
Jason2866 May 31, 2025
efed856
PEP8 convention
Jason2866 May 31, 2025
8cb1de0
better check for entry in board_sdkconfig
Jason2866 May 31, 2025
cfc3720
even more short and correct
Jason2866 May 31, 2025
46ac6a7
solid check, does only fire when entrys there
Jason2866 May 31, 2025
60ee531
implement function has_valid_sdkconfig() for "clean" checking of conf…
Jason2866 May 31, 2025
4eff679
fix function has_valid_sdkconfig()
Jason2866 May 31, 2025
ec5a431
back to refactor 1 soution
Jason2866 May 31, 2025
598bbce
back to working "dirty" if check
Jason2866 May 31, 2025
1581adb
file handling with UTF-8
Jason2866 May 31, 2025
5f350b7
utf-8
Jason2866 May 31, 2025
58e4367
Update main.py
Jason2866 May 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,088 changes: 922 additions & 166 deletions builder/frameworks/arduino.py

Large diffs are not rendered by default.

1,145 changes: 1,145 additions & 0 deletions builder/frameworks/component_manager.py

Large diffs are not rendered by default.

381 changes: 218 additions & 163 deletions builder/frameworks/espidf.py

Large diffs are not rendered by default.

479 changes: 317 additions & 162 deletions builder/main.py

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions examples/arduino-blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ platform = espressif32
framework = arduino
board = esp32-solo1
build_flags = -DLED_BUILTIN=2
lib_ignore = wifi
spiffs
NetworkClientSecure

custom_component_remove =
espressif/esp_hosted
espressif/esp_wifi_remote
Expand All @@ -31,6 +35,9 @@ platform = espressif32
framework = arduino
board = esp32-c2-devkitm-1
monitor_speed = 115200
lib_ignore = wifi
spiffs
NetworkClientSecure
custom_component_remove = espressif/esp_hosted
espressif/esp_wifi_remote
espressif/esp-dsp
Expand All @@ -50,6 +57,9 @@ platform = espressif32
framework = arduino
board = arduino_nano_esp32
monitor_speed = 115200
lib_ignore = wifi
spiffs
NetworkClientSecure
custom_component_remove = espressif/esp_hosted
espressif/esp_wifi_remote
espressif/esp-dsp
Expand All @@ -68,6 +78,9 @@ custom_component_remove = espressif/esp_hosted
platform = espressif32
framework = arduino
board = esp32s3_120_16_8-qio_opi
lib_ignore =
spiffs
NetworkClientSecure
custom_sdkconfig = CONFIG_SPIRAM_MODE_OCT=y
CONFIG_SPIRAM_SPEED_120M=y
CONFIG_LCD_RGB_ISR_IRAM_SAFE=y
Expand Down Expand Up @@ -95,6 +108,9 @@ framework = arduino
build_type = debug
board = esp32-c6-devkitc-1
monitor_speed = 115200
lib_ignore = wifi
spiffs
NetworkClientSecure
custom_component_remove = espressif/esp_hosted
espressif/esp_wifi_remote
espressif/mdns
Expand All @@ -107,6 +123,9 @@ platform = espressif32
framework = arduino
board = esp32-h2-devkitm-1
monitor_speed = 115200
lib_ignore =
spiffs
NetworkClientSecure
custom_component_remove = espressif/esp_hosted
espressif/esp_wifi_remote
espressif/mdns
Expand All @@ -119,6 +138,9 @@ platform = espressif32
framework = arduino
board = esp32-p4
build_flags = -DLED_BUILTIN=2
lib_ignore = wifi
spiffs
NetworkClientSecure
monitor_speed = 115200
custom_component_remove = espressif/esp_hosted
espressif/esp_wifi_remote
Expand Down
12 changes: 12 additions & 0 deletions examples/arduino-rmt-blink/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,38 @@
platform = espressif32
framework = arduino
board = esp32-s2-saola-1
lib_ignore = wifi
spiffs
NetworkClientSecure
build_flags = -DBUILTIN_RGBLED_PIN=18
-DNR_OF_LEDS=1

[env:esp32-s3]
platform = espressif32
framework = arduino
board = esp32-s3-devkitc-1
lib_ignore = wifi
spiffs
NetworkClientSecure
build_flags = -DBUILTIN_RGBLED_PIN=48
-DNR_OF_LEDS=1

[env:esp32-c3]
platform = espressif32
framework = arduino
board = esp32-c3-devkitm-1
lib_ignore = wifi
spiffs
NetworkClientSecure
build_flags = -DBUILTIN_RGBLED_PIN=8
-DNR_OF_LEDS=1

[env:esp32-c6]
platform = espressif32
framework = arduino
board = esp32-c6-devkitm-1
lib_ignore = wifi
spiffs
NetworkClientSecure
build_flags = -DBUILTIN_RGBLED_PIN=8
-DNR_OF_LEDS=1
1 change: 0 additions & 1 deletion examples/tasmota_platformio_override.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ custom_sdkconfig = https://raw.githubusercontent.com/pioarduino/sdkconfig
'# CONFIG_ETH_RMII_CLK_INPUT is not set'
'# CONFIG_ETH_RMII_CLK_IN_GPIO is not set'
custom_component_remove =
espressif/esp-dsp
espressif/network_provisioning
espressif/esp-zboss-lib
espressif/esp-zigbee-lib
Expand Down
Loading