incubator-nuttx/mm/iob
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
..
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig mm/iob: revert "modify iob to support header padding and alignment features" 2022-12-21 01:43:02 +08:00
Make.defs mm/iob: add a helper function to get iob count in chain 2022-12-21 01:40:24 +08:00
iob.h iob: Remove iob_user_e enum and related code 2022-08-15 08:41:20 +03:00
iob_add_queue.c Remove the private NULL, TRUE and FALSE macros 2022-07-31 22:12:57 +03:00
iob_alloc.c iob: Remove iob_user_e enum and related code 2022-08-15 08:41:20 +03:00
iob_alloc_qentry.c mm: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
iob_clone.c mm/iob: Support neg offset in iob_clone 2023-03-08 23:09:25 +02:00
iob_concat.c mm: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
iob_contig.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
iob_copyin.c mm/iob: Support negative offset when copyin/out. 2023-01-31 00:39:15 +08:00
iob_copyout.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
iob_count.c mm/iob: add a helper function to get iob count in chain 2022-12-21 01:40:24 +08:00
iob_dump.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
iob_free.c iob: Remove iob_user_e enum and related code 2022-08-15 08:41:20 +03:00
iob_free_chain.c iob: Remove iob_user_e enum and related code 2022-08-15 08:41:20 +03:00
iob_free_qentry.c mm: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
iob_free_queue.c iob: Remove iob_user_e enum and related code 2022-08-15 08:41:20 +03:00
iob_free_queue_qentry.c iob: Remove iob_user_e enum and related code 2022-08-15 08:41:20 +03:00
iob_get_queue_size.c mm/iob: add iob_get_queue_size() helper 2021-07-05 06:20:52 -05:00
iob_initialize.c mm/iob: revert "modify iob to support header padding and alignment features" 2022-12-21 01:43:02 +08:00
iob_navail.c mm: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
iob_notifier.c sched/wqueue: Change the return type of work_notifier_teardown to void 2022-05-14 00:35:29 +03:00
iob_pack.c mm/iob: Don't return NULL in iob_pack 2023-04-22 19:26:22 +08:00
iob_peek_queue.c Remove the private NULL, TRUE and FALSE macros 2022-07-31 22:12:57 +03:00
iob_remove_queue.c Remove the private NULL, TRUE and FALSE macros 2022-07-31 22:12:57 +03:00
iob_reserve.c mm/iob: reserved bytes should be updated after each iteration 2022-12-07 21:24:25 +08:00
iob_statistics.c iob: Remove iob_user_e enum and related code 2022-08-15 08:41:20 +03:00
iob_tailroom.c Add iob_tailroom 2021-06-30 06:40:13 -05:00
iob_test.c iob: Remove iob_user_e enum and related code 2022-08-15 08:41:20 +03:00
iob_trimhead.c iob: Remove iob_user_e enum and related code 2022-08-15 08:41:20 +03:00
iob_trimhead_queue.c iob: Remove iob_user_e enum and related code 2022-08-15 08:41:20 +03:00
iob_trimtail.c iob: Remove iob_user_e enum and related code 2022-08-15 08:41:20 +03:00
iob_update_pktlen.c mm/iob: new function iob_update_pktlen() to update packet length of the iob 2022-11-29 13:16:23 +08:00