nuttx/drivers/net
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
dm90x0.c Remove #warning if the code already return the error code or value 2023-05-18 15:44:28 +03:00
enc28j60.c Remove #warning if the code already return the error code or value 2023-05-18 15:44:28 +03:00
enc28j60.h
encx24j600.c Remove #warning if the code already return the error code or value 2023-05-18 15:44:28 +03:00
encx24j600.h
ftmac100.c Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
Kconfig drivers/net, include/nuttx/net: Add AR8031 PHY 2023-04-25 11:45:19 +08:00
lan91c111.c net/arp: Remove nuttx/net/arp.h 2022-12-16 22:10:59 +02:00
lan91c111.h
loopback.c net/l2/l3/l4: add support of iob offload 2022-12-03 11:47:04 +08:00
Make.defs net/netdev: Add upper half of netdev to simplify driver logic 2023-04-22 01:41:01 +08:00
netdev_upperhalf.c drivers/net: Remove HAVE_ATOMICS and use CONFIG_HAVE_ATOMICS directly 2023-07-05 13:43:17 +03:00
phy_notify.c sched/getpid: replace syscall getpid/tid/ppid() to kernel version 2023-02-02 10:33:01 +08:00
rpmsgdrv.c Replace all sprintf with snprintf 2023-05-08 09:57:01 +02:00
skeleton.c Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
slip.c SLIP: Switch to poll based design 2023-05-26 19:57:57 -03:00
telnet.c Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
tun.c net/semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
w5500.c net/arp: Remove nuttx/net/arp.h 2022-12-16 22:10:59 +02:00