incubator-nuttx/net/utils
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 wireless/bluetooth: add interrupt_context hander for netsnoop 2023-01-10 18:08:22 +08:00
Make.defs recvmsg: control msg support multi-attribute return 2023-05-04 12:04:11 +02:00
net_chksum.c Remove #warning if the code already return the error code or value 2023-05-18 15:44:28 +03:00
net_cmsg.c net/net_cmsg.c: Fix warning about using void* arithmetics 2023-05-10 17:58:25 +08:00
net_dsec2tick.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
net_dsec2timeval.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
net_icmpchksum.c net/l2/l3/l4: add support of iob offload 2022-12-03 11:47:04 +08:00
net_incr32.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
net_ipchksum.c Remove redundant length checking 2022-12-14 21:20:14 +08:00
net_ipv6_mask2pref.c net: use HTONS, NTOHS, HTONL, NTOHL macro in kernel code 2022-01-18 10:59:47 +01:00
net_ipv6_maskcmp.c NuttX: Gregory Nutt: update licenses to Apache 2021-04-03 04:20:31 -07:00
net_ipv6_pref2mask.c NuttX: Gregory Nutt: update licenses to Apache 2021-04-03 04:20:31 -07:00
net_lock.c add holder for mutex 2023-01-31 12:08:05 +09:00
net_snoop.c nuttx: add more dependent header file 2023-04-11 09:13:32 +03:00
net_tcpchksum.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
net_timeval2dsec.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
net_udpchksum.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
utils.h recvmsg: control msg support multi-attribute return 2023-05-04 12:04:11 +02:00