fix(CMSIS): Fix parallel build race in MAX78000/MAX78002 RISC-V loader projects #1654
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 245 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.329
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1654"
general
weight: 0.35
ttmut
Description
Projects built with
RISCV_LOAD=1(e.g.Examples/MAX78000/RV_ARM_Loader) generate$(ARM_MAP_FILE)by running a nested arm-onlymake RISCV_LOAD=0in the sameBUILD_DIR. With a parallel build (make -j), the outer make compiles and links the same objects and libraries at the same time as the nested build, so the two can overwrite each other's files.This shows up in CI ("Build All Examples",
make -r -j 8) as sporadic link failures inRV_ARM_Loader, with a different board and a different missing symbol each time:EvKit_V1:undefined reference to 'MXC_TFT_PreInit'Aud01_RevA:undefined reference to 'SystemInit','PreInit'and'SystemCoreClock'FTHR_RevA: failed in another attemptEvery other project passes, and the failing target is always
build/max78000.map. A source or board configuration problem would fail the same board consistently, so this looks like a build race. Re-running CI sometimes passes.The change makes the outer build's objects and libraries wait (order-only prerequisite) for
$(ARM_MAP_FILE), so the arm-only build runs first and the outer build then finds everything up to date. It applies only whenRISCV_LOAD=1andRISCV_COREis empty, so standalone ARM builds, standalone RISC-V builds, and the nested/RISC-V app builds (RISCV_LOAD=0) are unchanged. It is applied to bothmax78000.mkandmax78002.mk, which share the same logic. The change uses only features that work with Make 3.81.Signed-off-by: Vladislav Pejic <Vladislav.Pejic@analog.com>
Checklist Before Requesting Review
_______________________________________________________________________________