nuttx/libs/libdsp
Alan Carvalho de Assis c027e7c3e4 tools: fix stale archive members surviving a Kconfig-driven CSRCS change
During the Toybox port to NuttX, Claude noticed that changes in the
menuconfig weren't taking affect. This issue exists for a long time on
NuttX, in fact BayLibre's presentation from 2017 make jokes about our
building system not been reliable:
https://www.youtube.com/watch?v=XUJK2htXxKw&t=320s

Stale archive members from $(AR)'s additive-only behavior can linger
after Kconfig toggles change which files provide a symbol, causing dead
weight or "multiple definition" link errors on incremental builds.
Fixed by splitting ARCHIVE into two macros: ARCHIVE keeps the original
additive behavior for apps/libapps.a, which many independent
subdirectories contribute to across a build, while the new
ARCHIVE_REBUILD deletes then archives for the far more common case
of a single Makefile building its own self-contained $(OBJS)
- all 39 such call sites now use it.

Assisted-By: Claude Sonnet 5
Signed-off-by: Alan C. Assis <acassis@gmail.com>
2026-07-28 21:26:03 -03:00
..
CMakeLists.txt libs/libdsp: Add Matrix operations 2026-07-11 14:55:59 -03:00
Kconfig libdsp: update some comments 2021-04-01 01:24:12 -05:00
lib_avg.c libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_foc.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
lib_foc_b16.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
lib_matrix.c libs/libdsp: Add Matrix operations 2026-07-11 14:55:59 -03:00
lib_misc.c libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_misc_b16.c libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_motor.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
lib_motor_b16.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
lib_observer.c libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_observer_b16.c libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_pid.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
lib_pid_b16.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
lib_pmsm_model.c fix misspelled names in locally scoped code 2025-05-15 10:12:12 +08:00
lib_pmsm_model_b16.c fix misspelled names in locally scoped code 2025-05-15 10:12:12 +08:00
lib_svm.c libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_svm_b16.c libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_transform.c libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
lib_transform_b16.c libs/libdsp: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Makefile tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 21:26:03 -03:00