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 libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx 2022-08-13 13:28:24 +03:00
lib_crc8ccitt.c libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx 2022-08-13 13:28:24 +03:00
lib_crc8table.c libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx 2022-08-13 13:28:24 +03:00
lib_crc16.c libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx 2022-08-13 13:28:24 +03:00
lib_crc16ccitt.c arm64/a64: Add driver for MIPI DSI 2022-12-14 22:37:32 +08:00
lib_crc32.c libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx 2022-08-13 13:28:24 +03:00
lib_crc64.c libc: Move crc8.h, crc16.h and crc32.h from include to include/nuttx 2022-08-13 13:28:24 +03:00
lib_cxx_initialize.c arch: Change the linker generated symbols from uint32_t to uint8_t * 2022-09-24 21:26:56 +02:00
lib_debug.c nuttx: add some missing FAR 2022-12-21 10:56:45 +08:00
lib_dumpbuffer.c libc: add lib_dump utils 2022-08-24 16:58:10 +08:00
lib_dumpvbuffer.c libc: add lib_dump utils 2022-08-24 16:58:10 +08:00
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 libc/ftok: Map token to the root pseduo file system directory 2022-09-20 16:21:06 +08:00
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 libc: Fix getrandom() bug: Didn't propagate read error 2022-07-01 11:51:53 +08:00
lib_glob.c Fix compiler warnings (-Wunused-parameter) in various functions 2022-07-12 11:42:34 +08:00
lib_impure.c newlib/impure: declare thread specific file only if __NEWLIB__ is defined. 2022-10-12 17:22:24 +08:00
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 Replace all strncpy with strlcpy for safety 2022-08-25 13:38:36 +08:00
lib_xorshift128.c
Make.defs libc/fdcheck: add fdcheck module 2023-06-10 02:19:58 +08:00