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 rptun: fix rptun don't wait issue when get tx patyload 2022-11-23 19:42:30 +09:00
0002-Negotiate-individual-buffer-size-dynamically.patch rptun: fix rptun don't wait issue when get tx patyload 2022-11-23 19:42:30 +09:00
0003-rpmsg-wait-endpoint-ready-in-rpmsg_send-and-rpmsg_se.patch rptun: fix rptun don't wait issue when get tx patyload 2022-11-23 19:42:30 +09:00
0004-openamp-add-new-ops-notify_wait-support.patch rptun: fix rptun don't wait issue when get tx patyload 2022-11-23 19:42:30 +09:00
0005-rpmsg_virtio-don-t-need-check-status-when-get_tx_pay.patch rptun: fix rptun don't wait issue when get tx patyload 2022-11-23 19:42:30 +09:00
0006-rpmsg-notify-the-user-when-the-remote-address-is-rec.patch rptun: fix rptun don't wait issue when get tx patyload 2022-11-23 19:42:30 +09:00
0007-openamp-avoid-double-calling-ns_bound-when-each-othe.patch rptun: fix rptun don't wait issue when get tx patyload 2022-11-23 19:42:30 +09:00
0008-remoteproc-make-all-elf_-functions-static-except-elf.patch rptun: fix rptun don't wait issue when get tx patyload 2022-11-23 19:42:30 +09:00
0009-Fix-warn-declaration-of-vring_rsc-shadows-a-previous.patch rptun: fix rptun don't wait issue when get tx patyload 2022-11-23 19:42:30 +09:00
0010-rptun-fix-rptun-don-t-wait-issue-when-get-tx-patyloa.patch rptun: fix rptun don't wait issue when get tx patyload 2022-11-23 19:42:30 +09:00
0011-rpmsg-fix-rpmsg_virtio_get_tx_buffer-no-idx-return.patch openamp: update openamp lib 2023-02-23 22:38:02 +08:00
0012-rpmsg-add-new-API-rpdev_release_tx-rx_buffer.patch openamp: update openamp lib 2023-02-23 22:38:02 +08:00
0013-openamp-add-error-log-when-ept-cb-return-error.patch openamp: update openamp lib 2023-02-23 22:38:02 +08:00
0014-rpmsg-add-cache-flash-when-hold-rx-buffer.patch openamp: update openamp lib 2023-02-23 22:38:02 +08:00
0015-rpmsg-do-cache_invalidate-when-real-data-returned.patch openamp: update openamp lib 2023-02-23 22:38:02 +08:00
0016-openamp-add-new-API-rpmsg_virtio_get_rxbuffer_size.patch openamp: update openamp lib 2023-02-23 22:38:02 +08:00
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 openamp: update openmap lib version to 2022.10.0 2022-11-07 17:14:58 -03:00
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