nuttx/syscall
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
..
proxies cmake(bugfix):rename host tools binary dir to host_bin 2026-01-19 14:45:37 +08:00
stubs cmake(bugfix):rename host tools binary dir to host_bin 2026-01-19 14:45:37 +08:00
wraps cmake(bugfix):rename host tools binary dir to host_bin 2026-01-19 14:45:37 +08:00
.gitignore syscal: Remove .context form .gitignore 2022-03-02 10:42:05 +01:00
CMakeLists.txt cmake(bugfix):rename host tools binary dir to host_bin 2026-01-19 14:45:37 +08:00
Kconfig arch: Remove SYS_RESERVED from Kconfg 2022-02-27 22:54:13 +08:00
Makefile tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 21:26:03 -03:00
syscall.csv syscall: fcntl param3 type to uintptr_t 2026-04-27 12:01:55 -03:00
syscall_names.c syscall: migrate to SPDX identifier 2024-09-12 02:25:00 +08:00
syscall_stublookup.c syscall: migrate to SPDX identifier 2024-09-12 02:25:00 +08:00
syscall_wraps.h syscall: migrate to SPDX identifier 2024-09-12 02:25:00 +08:00