Repository navigation
feat(espidf): move the delegated pin to v5.5.6 and select the P4 silicon family from the board - #2161
Merged
Merged
Conversation
…con family The delegated `idf.py` path pinned ESP-IDF v5.5.1, which caps `ESP32P4_REV_MAX_FULL` at 199: every ESP32-P4 board whose `chip_variant` was not `esp32p4_es` was refused before anything downloaded, so rev-3 silicon had no bare-IDF path (#2133). Move the single pin to v5.5.6 -- the newest patch of the same release line, which carries both P4 families -- and select the family from the board: - `PINS` (tool components) re-copied from the release's `tools.json` `status: recommended` rows: xtensa/riscv32 esp-elf `20241119` -> `20260121`, esp-rom-elfs `20241011` -> `20260528`, openocd `20250707` -> `20260831`; cmake 3.30.2, ninja 1.12.1 and esp32ulp-elf unchanged. v5.5.6 also publishes a linux-arm64 ninja, so that row is now pinned (v5.5.1 had none). - Source tree: commit `fcae3288` -> `880a203a`, new archive sha256/size, and 18 of 23 gitlinks re-hashed from their archives. - Python environment: v5.5.6's `requirements.core.txt` dropped the `tree_sitter` pair, the served constraints moved, and the hash-locked file was re-resolved with `uv pip compile --universal --generate-hashes --python-version 3.12` (71 package lines; esptool 4.14.0). - Installed sizes re-measured with `du -sb` on linux-amd64; the method was validated first by reproducing v5.5.1's committed xtensa constant byte-for-byte. The toolchain + build-tool ceiling moves 1.35 -> 1.36 GB (1.357 GB measured; the toolchain set itself is 1.203 GB, still under AC2's 1.3 GB cap). `espidf_delegate` now writes one fbuild-owned `SDKCONFIG_DEFAULTS` entry into its build root, ahead of the project's own `sdkconfig.defaults` (and `sdkconfig.defaults.<target>`), and only lists files that exist because IDF aborts a configure naming a missing one: - `chip_variant = esp32p4` (rev-3): `CONFIG_ESP32P4_REV_MIN_300=y` -> `ESP32P4_REV_MIN_FULL=300`. - `chip_variant = esp32p4_es` (pre-rev-3): `CONFIG_ESP32P4_SELECTS_REV_LESS_V3=y` plus `CONFIG_ESP32P4_REV_MIN_0=y`. - A project `sdkconfig` that selected the other family is a configuration error naming the file and the symbol (a `sdkconfig` outranks defaults), and a P4 board naming neither family is refused by name instead of guessed. The old unconditional rev-3 refusal and the docs that justified it with v5.5.1's cap are replaced, so no message claims a limit the pin no longer has. Verified: soldr cargo test -p fbuild-toolchain --lib => 214 passed, 0 failed, 6 ignored; soldr cargo test -p fbuild-build-esp --lib => 269 passed, 0 failed, 7 ignored; rustfmt clean; boundary scanner rows=0, dylint_rows=0. The five-chip delegated e2e proofs stay `#[ignore]` (each installs 1.8-2.8 GB and runs a real `idf.py` build); the rev-3 refusal e2e became `espidf_riscv_component_project_builds_for_both_p4_silicon_families`, which asserts `CONFIG_ESP32P4_REV_MIN_FULL=300` and `=0` for the two boards. #2133 stays open (five-chip e2e, released footprint table).
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
The pin move to v5.5.6 replaced the literal GCC version in the real-install test with a pin lookup, which pushed esp_idf_s3_profile_installs_every_component_for_real() to 105 lines and tripped clippy::too_many_lines (-D warnings) in Dylint Full. Extract the lookup into a tests-module helper (pinned_version) and fold the intermediate `text` binding into the assertion, so the test body is back under the cap. No behaviour change: the assertion still compares the real compiler output to the pinned version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Moves the delegated ESP-IDF pin from v5.5.1 to v5.5.6, the newest patch
of the same release line, and selects the ESP32-P4 silicon family from the
board's own
build.chip_variant. Delivers the RED half of #2133:v5.5.1 caps
ESP32P4_REV_MAX_FULLat 199, so rev-3 P4 boards were refusedbefore anything was downloaded; v5.5.2+ carries both families in one release.
One release, not two (#1878 was closed over a second pin).
The data diff
PINS(tool components), copied verbatim from the release'stools.jsonstatus: recommendedrows — every row re-checked against the committedsnapshot by the verification tests added in #2151:
xtensa-esp-elfesp-14.2.0_20241119esp-14.2.0_20260121riscv32-esp-elfesp-14.2.0_20241119esp-14.2.0_20260121esp-rom-elfs2024101120260528openocd-esp32v0.12.0-esp32-20250707v0.12.0-esp32-20260831cmake,ninja,esp32ulp-elfv5.5.6 also publishes a linux-arm64 ninja (
ninja-linux-aarch64.zip), whichv5.5.1's
tools.jsondid not have; that row is pinned here, so an arm64 Linuxhost can now pin every component.
fcae3288→880a203a(v5.5.6), new archive sha256 +size; 18 of 23 gitlinks moved, each archive re-downloaded and hashed.
requirements.core.txtdropped thetree_sitterpair, the servedespidf.constraints.v5.5.txtmoved, and thehash-locked file was re-resolved (
uv pip compile --universal --generate-hashes --python-version 3.12).du -sbon linux-amd64 (2026-11-22). Themethod was validated first: re-measuring v5.5.1's Xtensa archive reproduced
the committed
1_103_937_348byte-for-byte.The family selection
espidf_delegatewrites one fbuild-ownedSDKCONFIG_DEFAULTSentry into itsbuild root and puts it ahead of the project's own defaults:
chip_variantESP32P4_REV_MIN_FULLesp32p4(rev-3)CONFIG_ESP32P4_REV_MIN_300=yesp32p4_es(pre-rev-3)CONFIG_ESP32P4_SELECTS_REV_LESS_V3=y+CONFIG_ESP32P4_REV_MIN_0=ySDKCONFIG_DEFAULTSreplaces IDF's own list, so the project'ssdkconfig.defaults(andsdkconfig.defaults.<target>, when present) areappended explicitly — and only files that exist, because IDF aborts a
configure that names a missing one.
sdkconfigthat already selected the other family is aconfiguration error naming both the file and the symbol: a
sdkconfigoutranks every default, so building with it would be a silent wrong-silicon
image.
The old unconditional rev-3 refusal and its docs are gone: nothing is refused
for the pin's sake any more, and the error message that claimed v5.5.1's cap
would otherwise have become false.
Verification
soldr cargo test -p fbuild-toolchain --lib— 214 passed, 0 failed,6 ignored. The pin verifier suite
(
pins_are_verbatim_rows_of_the_release_tools_json,pins_cover_exactly_the_archives_upstream_publishes,the_tools_json_snapshot_belongs_to_the_pinned_release) is what made this adata diff: it caught the newly published linux-arm64 ninja and the lock's
package-count move before the PR existed.
soldr cargo test -p fbuild-build-esp --lib— 269 passed, 0 failed,7 ignored, including the new
the_p4_silicon_family_comes_from_the_board_variant,an_unknown_p4_variant_is_refused,the_silicon_defaults_file_carries_the_family_symbol,the_sdkconfig_defaults_list_puts_the_family_first,the_child_gets_the_silicon_family_defaults(a REAL spawn: the child'senvironment carries the family entry first),
a_sdkconfig_pinning_the_other_family_is_refused.soldr cargo fmt --allclean;ci/enforce_platform_boundary.py --print-totals→rows=0; dylint_rows=0.Not in this PR
espidf_*_component_project_*,all
#[ignore]: each needs a ~1.8-2.8 GB install and a realidf.pybuild).They stay the gate before claiming the AC's GREEN; ran here only when the
host has the bandwidth.
espidf_riscv_component_project_is_refused_for_p4_rev3_siliconis replaced by
espidf_riscv_component_project_builds_for_both_p4_silicon_families,which asserts
CONFIG_ESP32P4_REV_MIN_FULL=300and=0for the two boards.tools: v5.5.6's toolchains measure 54 MB more than v5.5.1's (1.203 GB, still
under AC2's 1.3 GB cap on the toolchains themselves).
#2133 stays open: the five-chip e2e proof and the released-footprint table.