Skip to content
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

feat(esp32p4): Add initial ESP32-P4 support #10358

Merged
merged 28 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fcd64f7
feat(esp32p4): Initial changes required for ESP32-P4
Jason2866 Aug 20, 2024
a1c1ccb
fix(esp32p4): Fix lib builder errors
lucasssvaz Sep 19, 2024
ea83f5a
change(esp32p4): Unhide board
lucasssvaz Sep 19, 2024
bcc55ea
ci(esp32p4): Add ESP32-P4 to workflow
lucasssvaz Sep 19, 2024
394dd1b
change(esptool): Update esptool to 4.8.0
lucasssvaz Sep 19, 2024
03d6e32
fix(build): Fix redefinition errors
lucasssvaz Sep 19, 2024
5c22a28
fix(build): Remove old commands
lucasssvaz Sep 19, 2024
0a37668
change(esptool): Remove unsupported 32-bit tools
lucasssvaz Sep 19, 2024
979b16b
fix(get.py): Force exe generation
lucasssvaz Sep 19, 2024
26218d4
Revert "fix(get.py): Force exe generation"
lucasssvaz Sep 19, 2024
b23a2fb
fix(get.py): Fix system check
lucasssvaz Sep 19, 2024
488740b
change(tools): Push generated binaries to PR
github-actions[bot] Sep 19, 2024
72643fa
ci(esp32p4): Add missing ESP32-P4 entries
lucasssvaz Sep 19, 2024
e6cf7dc
fix(esp32p4): Add chip info
lucasssvaz Sep 20, 2024
62fef78
fix(esp32p4): Fix build commands
lucasssvaz Sep 20, 2024
149edfa
docs(esp32p4): Add missing references to P4
lucasssvaz Sep 20, 2024
e372320
fix(esp32p4): Fix clock sources definitions
lucasssvaz Sep 21, 2024
a8e1fdf
fix(esp32p4): Set CPU frequency to 360 MHz so it is stable in all chips
lucasssvaz Sep 21, 2024
fb3443d
refactor(esp32p4): Change preprocessor conditionals for maintainability
lucasssvaz Sep 21, 2024
f72fc69
fix(esp32p4): Add missing menu options
lucasssvaz Sep 22, 2024
f1b126c
fix(esp32p4): Mark as not in development json in readme
lucasssvaz Sep 24, 2024
b4f535a
fix(esp32p4): Add P4 to ci.json files
lucasssvaz Sep 24, 2024
24efbdd
ci(pre-commit): Apply automatic fixes
pre-commit-ci-lite[bot] Sep 24, 2024
09c0883
fix(get.py): Remove unused include
lucasssvaz Sep 24, 2024
50befb5
ci(pre-commit): Apply automatic fixes
pre-commit-ci-lite[bot] Sep 24, 2024
5913778
change(tools): Push generated binaries to PR
github-actions[bot] Sep 24, 2024
c882a84
ci(pre-commit): Apply automatic fixes
pre-commit-ci-lite[bot] Sep 24, 2024
148b633
fix(ci.json): Fix formatting
lucasssvaz Sep 24, 2024
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
Prev Previous commit
Next Next commit
change(esptool): Update esptool to 4.8.0
  • Loading branch information
lucasssvaz committed Sep 19, 2024
commit 394dd1bf97347fbc42d6867816d5b43ac39dfee8
42 changes: 21 additions & 21 deletions package/package_esp32_index.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -460,14 +460,14 @@
},
{
"name": "esptool_py",
"version": "4.6",
"version": "4.8.0",
"systems": [
{
"host": "x86_64-pc-linux-gnu",
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.9/esptool-v4.6-src.tar.gz",
"archiveFileName": "esptool-v4.6-src.tar.gz",
"checksum": "SHA-256:22f9bad0cd1cea14e554ac1f4a6d8f67415ff7029a66ce9130756276e7264e5a",
"size": "99141"
"url": "https://github.com/espressif/esptool/releases/download/v4.8.0/esptool-v4.8.0-linux-amd64.zip",
"archiveFileName": "esptool-v4.8.0-linux-amd64.zip",
"checksum": "SHA-256:e637adc204b74b980013e89dafce6e056401ec26c94e205b0158075a836c56c6",
"size": "64617780"
},
{
"host": "i686-pc-linux-gnu",
Expand All @@ -478,31 +478,31 @@
},
{
"host": "aarch64-linux-gnu",
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.9/esptool-v4.6-src.tar.gz",
"archiveFileName": "esptool-v4.6-src.tar.gz",
"checksum": "SHA-256:22f9bad0cd1cea14e554ac1f4a6d8f67415ff7029a66ce9130756276e7264e5a",
"size": "99141"
"url": "https://github.com/espressif/esptool/releases/download/v4.8.0/esptool-v4.8.0-linux-arm64.zip",
"archiveFileName": "esptool-v4.8.0-linux-arm64.zip",
"checksum": "SHA-256:c3a7749bed8d1929b0ad35743cc5557d60ecb81a10ffac28cb55ed1545e0223a",
"size": "54432155"
},
{
"host": "arm-linux-gnueabihf",
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.9/esptool-v4.6-src.tar.gz",
"archiveFileName": "esptool-v4.6-src.tar.gz",
"checksum": "SHA-256:22f9bad0cd1cea14e554ac1f4a6d8f67415ff7029a66ce9130756276e7264e5a",
"size": "99141"
"url": "https://github.com/espressif/esptool/releases/download/v4.8.0/esptool-v4.8.0-linux-arm32.zip",
"archiveFileName": "esptool-v4.8.0-linux-arm32.zip",
"checksum": "SHA-256:b781a86b53a17d24e02996c0a7958f9b76f6873fc1cc07c64ab6326e19395570",
"size": "45858426"
},
{
"host": "x86_64-apple-darwin",
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.9/esptool-v4.6-macos.tar.gz",
"archiveFileName": "esptool-v4.6-macos.tar.gz",
"checksum": "SHA-256:885ec69fcffdcb9e7c6eacd2589f13a45ce6bcb6742bea368ec3a73bcca6dd59",
"size": "5851297"
"url": "https://github.com/espressif/esptool/releases/download/v4.8.0/esptool-v4.8.0-macos.zip",
"archiveFileName": "esptool-v4.8.0-macos.zip",
"checksum": "SHA-256:73bba755d2da15ef18b8b8d8fe37c459d296648efb02d5449a3fc0035930306a",
"size": "29821710"
},
{
"host": "x86_64-mingw32",
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.9/esptool-v4.6-win64.zip",
"archiveFileName": "esptool-v4.6-win64.zip",
"checksum": "SHA-256:c7c68cd1aa520cbfce488ff6a77818ece272272eb012831b9d9ab1280a7c393f",
"size": "6638480"
"url": "https://github.com/espressif/esptool/releases/download/v4.8.0/esptool-v4.8.0-win64.zip",
"archiveFileName": "esptool-v4.8.0-win64.zip",
"checksum": "SHA-256:5575beabfe8c1c1ea7c1a0f1bd42ee97ac3f4c4dae5fc74cda58be0e23016da3",
"size": "33608471"
},
{
"host": "i686-mingw32",
Expand Down
9 changes: 9 additions & 0 deletions tools/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import re
import time
import argparse
import stat

# Initialize start_time globally
start_time = -1
Expand Down Expand Up @@ -177,6 +178,7 @@ def is_latest_version(destination, dirname, rename_to, cfile, checksum):


def unpack(filename, destination, force_extract, checksum): # noqa: C901
sys_name = platform.system()
dirname = ""
cfile = None # Compressed file
file_is_corrupted = False
Expand Down Expand Up @@ -223,6 +225,8 @@ def unpack(filename, destination, force_extract, checksum): # noqa: C901
rename_to = re.match(r"^([a-z][^\-]*\-*)+", dirname).group(0).strip("-")
if rename_to == dirname and dirname.startswith("esp32-arduino-libs-"):
rename_to = "esp32-arduino-libs"
elif rename_to == dirname and dirname.startswith("esptool-"):
rename_to = "esptool"

if not force_extract:
if is_latest_version(destination, dirname, rename_to, cfile, checksum):
Expand Down Expand Up @@ -256,6 +260,11 @@ def unpack(filename, destination, force_extract, checksum): # noqa: C901
print("Renaming {0} to {1} ...".format(dirname, rename_to))
shutil.move(dirname, rename_to)

# Add execute permission to esptool on non-Windows platforms
if rename_to.startswith("esptool") and "CYGWIN_NT" not in sys_name:
st = os.stat(os.path.join(destination, rename_to, "esptool"))
os.chmod(os.path.join(destination, rename_to, "esptool"), st.st_mode | 0o111)

with open(os.path.join(destination, rename_to, ".package_checksum"), "w") as f:
f.write(checksum)

Expand Down