nuttx/fs/vfs
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
fs_chstat.c
fs_close.c
fs_dir.c
fs_dup2.c
fs_dup.c
fs_epoll.c
fs_eventfd.c
fs_fchstat.c
fs_fcntl.c
fs_fdopen.c
fs_fstat.c libc/modlib: Replace nx_stat with file_stat 2023-07-06 09:20:24 -03:00
fs_fstatfs.c fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
fs_fsync.c fs_fsync: should not call fs's ioctl when fs not support sync api 2023-06-17 19:31:17 +08:00
fs_ioctl.c semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
fs_link.c
fs_lseek.c
fs_mkdir.c
fs_open.c
fs_poll.c
fs_pread.c
fs_pwrite.c
fs_read.c
fs_readlink.c
fs_rename.c
fs_rmdir.c
fs_select.c libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00
fs_sendfile.c sendfile: Fixed behavior of sendfile when count is set to zero. 2023-06-22 16:10:58 +08:00
fs_signalfd.c fs/vfs: Proper use of sigisemptyset 2023-06-15 10:11:36 -03:00
fs_stat.c
fs_statfs.c fs: move memset to upper lever for statfs 2023-06-16 11:10:25 +08:00
fs_symlink.c
fs_timerfd.c
fs_truncate.c
fs_unlink.c
fs_write.c
Kconfig
Make.defs