nuttx/openamp
chao an 6ee9ec7656 build: add initial cmake build system
1. Update all CMakeLists.txt to adapt to new layout
2. Fix cmake build break
3. Update all new file license
4. Fully compatible with current compilation environment(use configure.sh or cmake as you choose)

------------------

How to test

From within nuttx/. Configure:

cmake -B build -DBOARD_CONFIG=sim/nsh -GNinja
cmake -B build -DBOARD_CONFIG=sim:nsh -GNinja
cmake -B build -DBOARD_CONFIG=sabre-6quad/smp -GNinja
cmake -B build -DBOARD_CONFIG=lm3s6965-ek/qemu-flat -GNinja

(or full path in custom board) :
cmake -B build -DBOARD_CONFIG=$PWD/boards/sim/sim/sim/configs/nsh -GNinja

This uses ninja generator (install with sudo apt install ninja-build). To build:

$ cmake --build build

menuconfig:

$ cmake --build build -t menuconfig

--------------------------

2. cmake/build: reformat the cmake style by cmake-format

https://github.com/cheshirekow/cmake_format

$ pip install cmakelang

$ for i in `find -name CMakeLists.txt`;do cmake-format $i -o $i;done
$ for i in `find -name *\.cmake`;do cmake-format $i -o $i;done

Co-authored-by: Matias N <matias@protobits.dev>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-08 13:50:48 +08:00
..
.gitignore build: add initial cmake build system 2023-07-08 13:50:48 +08:00
0001-ns-acknowledge-the-received-creation-message.patch
0002-Negotiate-individual-buffer-size-dynamically.patch
0003-rpmsg-wait-endpoint-ready-in-rpmsg_send-and-rpmsg_se.patch
0004-openamp-add-new-ops-notify_wait-support.patch
0005-rpmsg_virtio-don-t-need-check-status-when-get_tx_pay.patch
0006-rpmsg-notify-the-user-when-the-remote-address-is-rec.patch
0007-openamp-avoid-double-calling-ns_bound-when-each-othe.patch
0008-remoteproc-make-all-elf_-functions-static-except-elf.patch
0009-Fix-warn-declaration-of-vring_rsc-shadows-a-previous.patch
0010-rptun-fix-rptun-don-t-wait-issue-when-get-tx-patyloa.patch
0011-rpmsg-fix-rpmsg_virtio_get_tx_buffer-no-idx-return.patch
0012-rpmsg-add-new-API-rpdev_release_tx-rx_buffer.patch
0013-openamp-add-error-log-when-ept-cb-return-error.patch
0014-rpmsg-add-cache-flash-when-hold-rx-buffer.patch
0015-rpmsg-do-cache_invalidate-when-real-data-returned.patch
0016-openamp-add-new-API-rpmsg_virtio_get_rxbuffer_size.patch
0017-virtio-follow-virtio-1.2-spec-add-more-virtio-status.patch openamp: decoupling the transport layer and virtio device layer 2023-05-20 21:51:24 +08:00
0018-virtio-decoupling-the-transport-layer-and-virtio-dev.patch openamp: decoupling the transport layer and virtio device layer 2023-05-20 21:51:24 +08:00
0019-virtio.h-add-version-in-device-id-table.patch openamp: virtio.h add version field in device id table struct 2023-05-27 18:51:04 +08:00
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig openamp: add OPENAMP_DEBUG config to enable/disable openamp debug 2023-06-18 16:17:44 +03:00
libmetal.cmake build: add initial cmake build system 2023-07-08 13:50:48 +08:00
libmetal.defs openamp: libmetal compile pass with arm64 arch 2023-03-21 07:43:20 +01:00
Makefile
open-amp.cmake build: add initial cmake build system 2023-07-08 13:50:48 +08:00
open-amp.defs openamp: add OPENAMP_DEBUG config to enable/disable openamp debug 2023-06-18 16:17:44 +03:00