fix(firmware): restore omi/sysbuild/mcuboot.conf as regular file (#6350)#6845
Conversation
…edHardware#6350) Commit 32ccac5 intended to replace a symlink with a regular Kconfig file, but git saved the new content as the symlink's target string, producing a broken symlink. ls reports mode lrwxr-xr-x and the "target" is the 717-byte Kconfig body, so the path is unresolvable and the MCUboot build fails with 'undefined reference to __device_dts_ord_149'. Replace the broken symlink with a regular file holding the same content. The body is byte-identical to omi/firmware/bootloader/mcuboot/mcuboot.conf, so this matches what a correct symlink would have resolved to. Fixes BasedHardware#6350
Greptile SummaryThis PR fixes a broken symlink — Confidence Score: 5/5Safe to merge — single-file mode fix with no content changes; all remaining findings are P2 style suggestions. The only change is the git file-mode bit flipping from symlink to regular file. Content is unchanged and verified identical to the bootloader reference. The two P2 comments (duplicate Kconfig keys and symlink-vs-copy tradeoff) do not block correctness. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["git ls-files --stage\nomi/firmware/omi/sysbuild/mcuboot.conf"] -->|Before PR\nmode 120000 symlink| B["Broken symlink\n(target = Kconfig text, not a path)"]
A -->|After PR\nmode 100644 regular file| C["Regular ASCII file\n(27 lines of Kconfig)"]
B --> D["MCUboot sysbuild FAILS\nundefined reference to\n__device_dts_ord_149"]
C --> E["MCUboot sysbuild SUCCEEDS\nKconfig resolved correctly"]
F["omi/firmware/bootloader/mcuboot/mcuboot.conf"] -.->|byte-for-byte identical| C
|
|
@TuEmb can u help |
|
Thanks for landing the mcuboot.conf restore, @TuEmb. |
…edHardware#6350) (BasedHardware#6845) Commit 32ccac5 intended to replace a symlink with a regular Kconfig file, but git saved the new content as the symlink's target string, producing a broken symlink. ls reports mode lrwxr-xr-x and the "target" is the 717-byte Kconfig body, so the path is unresolvable and the MCUboot build fails with 'undefined reference to __device_dts_ord_149'. Replace the broken symlink with a regular file holding the same content. The body is byte-identical to omi/firmware/bootloader/mcuboot/mcuboot.conf, so this matches what a correct symlink would have resolved to. Fixes BasedHardware#6350 Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Summary
omi/firmware/omi/sysbuild/mcuboot.confwas stored as a symlink whose "target" is the intended Kconfig content rather than a path. Git reports modelrwxr-xr-xandfile(1)calls it a broken symbolic link, so the MCUboot build fails withundefined reference to __device_dts_ord_149because the Kconfig it needs cannot be resolved. This PR replaces the broken symlink with a regular file carrying the same 717 bytes of Kconfig.Why this matters
The firmware build is gated on this file. Anyone who clones the repo and runs the MCUboot sysbuild today hits the linker error. Commit
32ccac5aac89("change from fatFs to littleFs to adapt to hardware") intended to swap the symlink for a regular file, but the commit was saved with mode120000and the new content stored as the symlink target string, which is why the file appears to resolve to its own contents.Changes
One file, one type change.
git ls-files --stage omi/firmware/omi/sysbuild/mcuboot.confgoes from120000(symlink) to100644(regular file). The body matchesomi/firmware/bootloader/mcuboot/mcuboot.confbyte-for-byte, so this is what a correct symlink would have resolved to anyway.After:
Testing
The fix is a file-mode change. I could not run the nRF Connect SDK MCUboot build locally. Please trigger CI or confirm on a workstation with the SDK that
undefined reference to __device_dts_ord_149no longer reproduces.Alternative
If the original intent was a live symlink rather than a regular copy, happy to swap this to
ln -s ../../bootloader/mcuboot/mcuboot.confinstead. Either resolves the build break. I picked the regular file because that matches what the introducing commit's message says it was trying to do.Fixes #6350
This contribution was developed with AI assistance (Codex).