Skip to content

cpu/nrf5x_common: copy vendor files only when newer [backport 2025.10]#21878

Merged
maribu merged 1 commit intoRIOT-OS:2025.10-branchfrom
maribu:backport/2025.10/pr/nrf5x_common/fix_vendor_files
Nov 15, 2025
Merged

cpu/nrf5x_common: copy vendor files only when newer [backport 2025.10]#21878
maribu merged 1 commit intoRIOT-OS:2025.10-branchfrom
maribu:backport/2025.10/pr/nrf5x_common/fix_vendor_files

Conversation

@maribu
Copy link
Copy Markdown
Member

@maribu maribu commented Nov 15, 2025

Backport of #21868

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

@maribu maribu requested a review from aabadie as a code owner November 15, 2025 14:49
@maribu maribu added 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 Process: release backport Integration Process: The PR is a release backport of a change previously provided to master Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Nov 15, 2025
@maribu maribu requested a review from crasbe November 15, 2025 14:49
@maribu maribu requested a review from benpicco November 15, 2025 14:50
@maribu maribu enabled auto-merge November 15, 2025 14:50
@riot-ci
Copy link
Copy Markdown

riot-ci commented Nov 15, 2025

Murdock results

✔️ PASSED

4335a61 cpu/nrf5x_common: copy vendor files only when newer

Success Failures Total Runtime
10560 0 10560 12m:19s

Artifacts

@maribu maribu added this pull request to the merge queue Nov 15, 2025
Merged via the queue into RIOT-OS:2025.10-branch with commit 0fe3d45 Nov 15, 2025
31 checks passed
@maribu maribu deleted the backport/2025.10/pr/nrf5x_common/fix_vendor_files branch November 15, 2025 17:49
@benpicco benpicco added this to the Release 2025.10 milestone Dec 3, 2025
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 Process: release backport Integration Process: The PR is a release backport of a change previously provided to master 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.

5 participants