Skip to content

feat(libs): Adjust scripts for split user libs#341

Merged
me-no-dev merged 1 commit into
espressif:masterfrom
lucasssvaz:feat/split_libs
Jan 13, 2026
Merged

feat(libs): Adjust scripts for split user libs#341
me-no-dev merged 1 commit into
espressif:masterfrom
lucasssvaz:feat/split_libs

Conversation

@lucasssvaz
Copy link
Copy Markdown
Member

Description

This pull request refactors the library packaging and installation scripts to improve compatibility, clarity, and organization. The main changes include restructuring how ESP32 Arduino libraries are organized by variant, adding error handling, and updating merging and extraction logic.

Library structure and migration improvements:

  • The installation script (copy-to-arduino.sh) now splits the monolithic esp32-arduino-libs folder into per-variant folders (<variant>-libs), flattening the directory structure and making it easier to manage libraries for each SoC variant. Old layouts are removed to support migration.

  • During installation, the script skips build/development files (such as dependencies.lock and pioarduino-build.py) when copying libraries for each variant.

Error handling and robustness:

  • The installation script now checks for the existence of the source libraries folder and exits with an error message if it is missing, preventing silent failures.

Extraction and merging logic updates:

  • The artifact combination script (combine-artifacts.sh) extracts the SoC name from each library archive and copies its versions.txt to the corresponding SoC-specific folder before merging.

  • The merging of versions.txt files now uses gawk on macOS and awk elsewhere for compatibility, and paths are properly quoted to handle spaces.

Packaging changes:

  • The final zip packaging step now uses ./* to include all files in the output tools directory, ensuring correct archiving of all contents.

Related

espressif/arduino-esp32#12219

@lucasssvaz lucasssvaz requested a review from me-no-dev January 12, 2026 20:19
@lucasssvaz lucasssvaz self-assigned this Jan 12, 2026
@lucasssvaz lucasssvaz added the enhancement New feature or request label Jan 12, 2026
@me-no-dev me-no-dev merged commit ce2acb4 into espressif:master Jan 13, 2026
12 checks passed
@lucasssvaz lucasssvaz deleted the feat/split_libs branch January 13, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants