Commit Graph

10 Commits

Author SHA1 Message Date
Will Miles
2ab9659332 Speed up usermod validation
Avoid checking usermods we've already matched, and exit early if we've
got everything.

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-10 10:29:56 -04:00
Will Miles
3bfdb736e3 Fix usermod validation portability
Use proper path analysis instead of bare text matching.

Co-authored-by: Claude <noreply@anthropic.com>
2026-03-10 10:11:44 -04:00
Will Miles
7f44396f7f validate_modules: Support LTO
When LTO is enabled, the map file no longer provides a positive
indication of whether a given object file has contributed to the final
binary.  Instead use nm to parse the debug data in the .elf file.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-08 10:04:38 -04:00
Will Miles
ac1a4dfbfd validate_modules: Remove obsolete code 2026-03-01 19:27:14 -05:00
Will Miles
3bfbbab807 Formalize dynarray system
Break out the dynamic array macros to a re-usable component and fix
the implementation.
2026-02-28 22:47:48 -05:00
Will Miles
b97b46ae12 Use new section for dynamic arrays
Use a custom linker section to hold dynamic arrays such as the
usermod list.  This provides an extensible solution for wider use
in the future (such as FX or Bus drivers), as well as IDF v5
compatibility.
2026-02-28 22:47:48 -05:00
Will Miles
368351bbdd Remove nonfunctional usermod validation
Non-platform-safe usermods are filtered out before validation runs;
so this check is no longer functional.
2025-06-18 12:10:00 -04:00
Will Miles
f9bfcce65d Fix disabled usermod presence validation
PlatformIO doesn't clean out the libdir when usermods are disabled, so
they still appear in the LibBuilders() set.  Ensure that we validate
only usermods that were actually deps for the build.
2025-06-18 12:08:57 -04:00
Will Miles
f3623158d7 Usermod script cleanup
Fix whitespace and remove unused imports
2025-05-25 08:33:27 -04:00
Will Miles
309c8d67f3 Generalize module link validation
Perform validation for external modules, too.
2025-05-24 23:14:22 -04:00