nuttx/openamp
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
..
.gitignore
0001-libmetal-cmake-set-HAVE_STDATOMIC_H-default-true-in-.patch
0001-ns-acknowledge-the-received-creation-message.patch
0002-libmetal-atomic-enable-64-bit-atomic-by-toolchain-bu.patch
0002-Negotiate-individual-buffer-size-dynamically.patch
0003-mutex-change-the-libmetal-nuttx-mutex-to-recursive-m.patch
0003-rpmsg-notify-the-user-when-the-remote-address-is-rec.patch
0004-rpmsg-wait-ept-ready-in-rpmsg_send.patch
0005-openamp-add-VIRTIO_RING_F_MUST_NOTIFY-event.patch
0006-rpmsg_virtio-don-t-need-check-status-when-get_tx_pay.patch
0007-virtqueue-move-virtqueue_nused-and-virtqueue_navail-.patch
0008-lib-rpmsg-rpmsg_virtio-add-last-buffer-check-to-fix-.patch
0009-virtio-change-feature-to-64-bit-in-all-virtio_dispat.patch
0010-openamp-add-assert-when-get-tx-buffer-failed.patch
0011-remoteproc_virtio-add-shm_io-for-remoteproc-virtio-a.patch
0012-remoteproc-sync-the-virtio-rpmsg-config-with-linux-s.patch
0013-virtio.h-add-mm_priv-to-struct-virtio_deivce.patch
0014-lib-rpmsg_virtio-use-virtio_alloc_buf-to-alloc-share.patch
0015-lib-remoteproc_virtio-optimize-virtqueue_notificatio.patch
0016-lib-rpmsg_virtio-support-release-the-name-service-me.patch
0017-lib-virtio-virtqueue-change-the-virtqueue-dump-log-l.patch
0018-lib-rpmsg-add-priority-support-for-rpmsg-endpoint.patch
0019-rpmsg-Add-VIRTIO_RPMSG_F_BUFADDR-to-support-specify-.patch
CMakeLists.txt
Kconfig
libmetal.cmake
libmetal.defs
Makefile tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 21:26:03 -03:00
open-amp.cmake
open-amp.defs