nuttx/libs/libc/string
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: Print error code for unknown errors in strerror/gai_strerror 2023-04-22 01:46:39 +08:00
lib_bzero.c semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
lib_explicit_bzero.c
lib_ffs.c
lib_ffsl.c
lib_ffsll.c
lib_fls.c
lib_flsl.c
lib_flsll.c
lib_index.c
lib_isbasedigit.c
lib_memccpy.c
lib_memchr.c libc/string: prevent libc in the kernel/userspace optionally 2023-05-17 13:58:48 +08:00
lib_memcmp.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_memcpy.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_memmem.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_memmove.c libc/string: prevent libc in the kernel/userspace optionally 2023-05-17 13:58:48 +08:00
lib_mempcpy.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_memrchr.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_memset.c libc/string: prevent libc in the kernel/userspace optionally 2023-05-17 13:58:48 +08:00
lib_popcount.c
lib_popcountl.c
lib_popcountll.c
lib_rawmemchr.c libc/lib_rawmemchr.c:Add rawmemchr methon. 2023-02-24 04:06:04 +08:00
lib_rindex.c
lib_skipspace.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_stpcpy.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_stpncpy.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strcasecmp.c libc/string: prevent libc in the kernel/userspace optionally 2023-05-17 13:58:48 +08:00
lib_strcasestr.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strcat.c libc/string: prevent libc in the kernel/userspace optionally 2023-05-17 13:58:48 +08:00
lib_strchr.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strchrnul.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strcmp.c libc/string: prevent libc in the kernel/userspace optionally 2023-05-17 13:58:48 +08:00
lib_strcoll.c
lib_strcpy.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strcspn.c
lib_strdup.c change strcpy to strlcpy 2023-02-24 12:15:40 +08:00
lib_strerror.c libc: Print error code for unknown errors in strerror/gai_strerror 2023-04-22 01:46:39 +08:00
lib_strerrorr.c Replace all strncpy with strlcpy for safety 2022-08-25 13:38:36 +08:00
lib_strlcat.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strlcpy.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strlen.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strncasecmp.c libc/string: prevent libc in the kernel/userspace optionally 2023-05-17 13:58:48 +08:00
lib_strncat.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strncmp.c libc/string: prevent libc in the kernel/userspace optionally 2023-05-17 13:58:48 +08:00
lib_strncpy.c libc/string: prevent libc in the kernel/userspace optionally 2023-05-17 13:58:48 +08:00
lib_strndup.c
lib_strnlen.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strpbrk.c
lib_strrchr.c libc/string: prevent libc in the kernel/userspace optionally 2023-05-17 13:58:48 +08:00
lib_strsep.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strsignal.c libs/libc/string: make strsignal() configurable similar to strerror() 2023-04-22 01:26:42 +08:00
lib_strspn.c
lib_strstr.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strtok.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strtokr.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_strverscmp.c libc/versionsort: support versionsort and strverscmp 2023-01-15 11:24:40 +08:00
lib_strxfrm.c libs/libc/string: fix various style issues in code 2023-06-11 12:55:05 +08:00
lib_timingsafe_bcmp.c libs/libc/string: remove redundant parenthesis 2023-05-19 02:40:38 +08:00
lib_vikmemcpy.c libc/string: prevent libc in the kernel/userspace optionally 2023-05-17 13:58:48 +08:00
Make.defs libc/string: prevent libc in the kernel/userspace optionally 2023-05-17 13:58:48 +08:00