nuttx/openamp
Alan Carvalho de Assis 87260499e1
Some checks are pending
MemBrowse Memory Report / changes-filter (push) Waiting to run
MemBrowse Memory Report / load-targets (push) Waiting to run
MemBrowse Memory Report / identical (push) Blocked by required conditions
MemBrowse Memory Report / analyze (push) Blocked by required conditions
cmake: Use NUTTX(_DIR/_BIN_DIR) instead CMAKE(_SRC_DIR/_BIN_DIR)
This change fixes NuttX’s CMake support when NuttX is embedded
in another project via add_subdirectory(). CMake’s CMAKE_SOURCE_DIR
and CMAKE_BINARY_DIR refer to the outermost project, causing NuttX
to access its .config, generated files, host tools, and build artifacts
in the parent project’s directories. The fix introduces NUTTX_DIR and
NUTTX_BINARY_DIR, based on CMAKE_CURRENT_SOURCE_DIR and
CMAKE_CURRENT_BINARY_DIR, and consistently uses them for NuttX
self-references while preserving existing standalone builds. It fixes
the Kconfig initialization failure reported in #19697 and allows an
embedded sim:nsh build to configure, build, and boot successfully.
The change affects only the CMake build system (not Make or Kconfig
defaults), requires the corresponding nuttx-apps change, and does not
extend add_subdirectory() support to cross-compiled non-sim boards due
to CMake’s toolchain-file limitation.

Fixes #19697.

Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>
2026-08-09 11:13:08 -03:00
..
.gitignore cmake:reuse OpenAMP own CMake script for CMake build 2024-06-26 00:22:03 +08:00
0001-libmetal-cmake-set-HAVE_STDATOMIC_H-default-true-in-.patch openamp/libmetal: change the libmetal mutex to rmutex to avoid carsh 2026-01-04 21:06:10 +08:00
0001-ns-acknowledge-the-received-creation-message.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0002-libmetal-atomic-enable-64-bit-atomic-by-toolchain-bu.patch openamp/libmetal: change the libmetal mutex to rmutex to avoid carsh 2026-01-04 21:06:10 +08:00
0002-Negotiate-individual-buffer-size-dynamically.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0003-mutex-change-the-libmetal-nuttx-mutex-to-recursive-m.patch openamp/libmetal: change the libmetal mutex to rmutex to avoid carsh 2026-01-04 21:06:10 +08:00
0003-rpmsg-notify-the-user-when-the-remote-address-is-rec.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0004-rpmsg-wait-ept-ready-in-rpmsg_send.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0005-openamp-add-VIRTIO_RING_F_MUST_NOTIFY-event.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0006-rpmsg_virtio-don-t-need-check-status-when-get_tx_pay.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0007-virtqueue-move-virtqueue_nused-and-virtqueue_navail-.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0008-lib-rpmsg-rpmsg_virtio-add-last-buffer-check-to-fix-.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0009-virtio-change-feature-to-64-bit-in-all-virtio_dispat.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0010-openamp-add-assert-when-get-tx-buffer-failed.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0011-remoteproc_virtio-add-shm_io-for-remoteproc-virtio-a.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0012-remoteproc-sync-the-virtio-rpmsg-config-with-linux-s.patch openamp: make the remoteproc virtio fit more virtio devices 2026-01-19 14:18:27 +08:00
0013-virtio.h-add-mm_priv-to-struct-virtio_deivce.patch openamp: add mm_priv to struct virtio_device 2026-01-19 14:18:27 +08:00
0014-lib-rpmsg_virtio-use-virtio_alloc_buf-to-alloc-share.patch openamp: rpmsg virtio use virtio_alloc_buf to alloc share memory 2026-01-19 14:18:27 +08:00
0015-lib-remoteproc_virtio-optimize-virtqueue_notificatio.patch openamp: optimize virtqueue_notification() called condition 2026-01-19 14:18:27 +08:00
0016-lib-rpmsg_virtio-support-release-the-name-service-me.patch openamp/lib/rpmsg_virtio: release the name service messsage 2026-01-29 09:26:50 -03:00
0017-lib-virtio-virtqueue-change-the-virtqueue-dump-log-l.patch openamp/virtqueue: change the virtqueue dump log level to emergency 2026-01-30 07:50:11 -03:00
0018-lib-rpmsg-add-priority-support-for-rpmsg-endpoint.patch lib/rpmsg: add priority support for rpmsg endpoint 2026-01-30 07:50:11 -03:00
0019-rpmsg-Add-VIRTIO_RPMSG_F_BUFADDR-to-support-specify-.patch openamp: add patch for VIRTIO_RPMSG_F_BUFADDR buffer address support 2026-03-05 12:39:13 +08:00
CMakeLists.txt openamp: update openamp and libmetal to last release version 2025-12-31 02:36:29 +08:00
Kconfig openamp: replace VIRTIO_DRIVER/DEVICE_ONLY to VIRTIO_DRIVER/DEVICE_SUPPORT 2024-10-09 23:32:58 +08:00
libmetal.cmake cmake: Use NUTTX(_DIR/_BIN_DIR) instead CMAKE(_SRC_DIR/_BIN_DIR) 2026-08-09 11:13:08 -03:00
libmetal.defs openamp: Fix Make style 2026-03-23 18:16:46 -04:00
Makefile tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 21:26:03 -03:00
open-amp.cmake cmake: Use NUTTX(_DIR/_BIN_DIR) instead CMAKE(_SRC_DIR/_BIN_DIR) 2026-08-09 11:13:08 -03:00
open-amp.defs openamp: add patch for VIRTIO_RPMSG_F_BUFADDR buffer address support 2026-03-05 12:39:13 +08:00