Skip to content

Conversation

@leandrolanzieri
Copy link
Contributor

Contribution description

With #21800, nrf5x_common pull vendor files from an external repo. The issue is that the target that copies the vendor files does so unconditionally, resulting in an update of the vendor files on every compilation, forcing make to rebuild mostly everything every time.

This adds a flag to the cp command to only copy the files over when the vendor ones are indeed newer.

Testing procedure

Using some nrf-based board, compile some application (e.g., hello-world) twice using QUIET=0. You should see that without this patch many objects are recompiled every time.

Issues/PRs references

#21800

@leandrolanzieri leandrolanzieri added the Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) label Nov 11, 2025
@github-actions github-actions bot added Platform: ARM Platform: This PR/issue effects ARM-based platforms Area: cpu Area: CPU/MCU ports labels Nov 11, 2025
@crasbe crasbe added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Nov 11, 2025
@leandrolanzieri leandrolanzieri force-pushed the pr/nrf5x_common/fix_vendor_files branch from 34c97e7 to f25b8d1 Compare November 11, 2025 10:27
@crasbe crasbe enabled auto-merge November 11, 2025 11:25
@riot-ci
Copy link

riot-ci commented Nov 11, 2025

Murdock results

✔️ PASSED

f25b8d1 cpu/nrf5x_common: copy vendor files only when newer

Success Failures Total Runtime
10930 0 10931 12m:01s

Artifacts

@crasbe crasbe added this pull request to the merge queue Nov 11, 2025
@maribu
Copy link
Member

maribu commented Nov 11, 2025

@benpicco: We probably want a backport of this, too? I think 2025.10 release is going to be the first to ship #21800 and this PR seems to be very low risk and high reward for developers to me.

Merged via the queue into RIOT-OS:master with commit 6da5184 Nov 11, 2025
25 checks passed
@maribu
Copy link
Member

maribu commented Nov 15, 2025

Backport provided in #21878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Platform: ARM Platform: This PR/issue effects ARM-based platforms Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants