nuttx/arch
Alan Carvalho de Assis bdcf3eba14 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 08:41:12 -03:00
..
arm tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
arm64 tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
avr tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
ceva tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
dummy
hc tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
mips tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
misoc tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
or1k tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
renesas tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
risc-v tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
sim tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
sparc tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
tricore tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
x86 tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
x86_64 tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
xtensa tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
z16 tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 08:41:12 -03:00
z80 style: fix checkpatch issues after debug.h move 2026-04-07 07:50:06 -03:00
CMakeLists.txt
Kconfig sched/clock/clock_delay: added config flag to remove weak up_udelay 2026-06-12 09:55:11 -04:00