nuttx/drivers/usbhost
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
hid_parser.c
Kconfig Fix Kconfig style 2023-05-23 00:03:25 +08:00
Make.defs
usbhost_cdcacm.c usbhost/cdcacm: Fix the compiler warning when serial dma is enabled 2023-06-05 09:25:31 +02:00
usbhost_cdcmbim.c fs: Add g_ prefix for all global file_operations instances 2023-04-24 16:13:29 +02:00
usbhost_composite.c
usbhost_composite.h
usbhost_devaddr.c usbhost: Fix function address generation for multi-port root hubs. 2023-05-11 09:44:18 +02:00
usbhost_enumerate.c usbhost: Can now handle multiple interface descriptors. 2023-05-21 09:50:36 -03:00
usbhost_findclass.c
usbhost_ft232r.c usb/ft232r: fixed build issue 2022-12-08 22:49:26 +08:00
usbhost_hidkbd.c usbhost_hidkbd: Add the option to use interrupt transfers. 2023-03-29 09:22:41 -03:00
usbhost_hidmouse.c fs: Move mmap callback before truncate in [file|mountpt]_operations 2023-01-04 17:43:59 +02:00
usbhost_hub.c usbhost: Make unplugging hubs more reliable. 2023-05-18 13:47:15 +08:00
usbhost_max3421e.c usbhost: Fix function address generation for multi-port root hubs. 2023-05-11 09:44:18 +02:00
usbhost_registerclass.c
usbhost_registry.c
usbhost_registry.h
usbhost_skeleton.c drivers/usbhost/usbhost_skeleton: fix typo 2022-11-03 14:43:12 +01:00
usbhost_storage.c fs: Add model field to geometry and mtd_geometry_s 2023-01-31 11:50:28 -03:00
usbhost_trace.c
usbhost_xboxcontroller.c fs: Move mmap callback before truncate in [file|mountpt]_operations 2023-01-04 17:43:59 +02:00