nuttx/libs/libc/misc
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 libc: Prefer to implement memfd on top of shm 2023-06-20 20:14:20 +03:00
lib_crc8.c
lib_crc8ccitt.c
lib_crc8table.c
lib_crc16.c
lib_crc16ccitt.c arm64/a64: Add driver for MIPI DSI 2022-12-14 22:37:32 +08:00
lib_crc32.c
lib_crc64.c
lib_cxx_initialize.c
lib_debug.c nuttx: add some missing FAR 2022-12-21 10:56:45 +08:00
lib_dumpbuffer.c
lib_dumpvbuffer.c
lib_envpath.c Replace all sprintf with snprintf 2023-05-08 09:57:01 +02:00
lib_err.c sched/getpid: replace syscall getpid/tid/ppid() to kernel version 2023-02-02 10:33:01 +08:00
lib_execinfo.c
lib_fchmodat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_fdcheck.c libs/libc/misc: fix alignment in fdcheck 2023-07-07 17:39:39 -03:00
lib_fdsan.c libc/misc: add fdsan module 2023-05-17 10:24:42 +08:00
lib_fnmatch.c
lib_fstatat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_ftok.c
lib_getfullpath.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_getrandom.c
lib_glob.c
lib_impure.c
lib_kbddecode.c libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc) 2022-12-05 14:27:55 +01:00
lib_kbdencode.c libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc) 2022-12-05 14:27:55 +01:00
lib_memfd.c libc: memfd_create should create /tmp/memfd/ before creating file 2023-06-20 20:14:20 +03:00
lib_mkdirat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_mkfifo.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_mknod.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_mutex.c Fix Deadloop in VFS if CONFIG_CANCELLATION_POINTS is enabled 2023-07-06 14:20:29 -03:00
lib_ncompress.c Remove the remain MIN/MAX like macro 2023-02-03 23:22:41 +08:00
lib_openat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_slcddecode.c libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc) 2022-12-05 14:27:55 +01:00
lib_slcdencode.c libc/stream: Rename [lib_stream_](put|get) to [lib_stream_](putc|getc) 2022-12-05 14:27:55 +01:00
lib_tea_decrypt.c
lib_tea_encrypt.c
lib_uadd32x64.c
lib_uadd64.c
lib_umask.c
lib_umul32.c
lib_umul32x64.c
lib_umul64.c
lib_usub64.c
lib_usub64x32.c
lib_utimensat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_utsname.c
lib_xorshift128.c
Make.defs libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00