nuttx/libs/libc/pthread
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
Make.defs sched/tls: remove PTHREAD_CLEANUP from Kconfig 2023-06-14 12:00:48 +08:00
pthread_atfork.c
pthread_attr_destroy.c
pthread_attr_getaffinity.c libs/libc/pthread: fix function name in comments 2023-04-07 12:28:45 -03:00
pthread_attr_getdetachstate.c
pthread_attr_getinheritsched.c
pthread_attr_getschedparam.c
pthread_attr_getschedpolicy.c
pthread_attr_getstack.c libc/pthread: Implement pthread_attr_[set|get]stackaddr 2023-01-24 13:53:02 -03:00
pthread_attr_getstackaddr.c libc/pthread: Implement pthread_attr_[set|get]stackaddr 2023-01-24 13:53:02 -03:00
pthread_attr_getstacksize.c libc/pthread: Implement pthread_attr_[set|get]stackaddr 2023-01-24 13:53:02 -03:00
pthread_attr_init.c
pthread_attr_setaffinity.c libs/libc/pthread: fix function name in comments 2023-04-07 12:28:45 -03:00
pthread_attr_setdetachstate.c
pthread_attr_setinheritsched.c
pthread_attr_setschedparam.c
pthread_attr_setschedpolicy.c sched: Map SCHED_OTHER to SCHED_FIFO or SCHED_RR 2023-01-30 03:01:03 +02:00
pthread_attr_setstack.c libc/pthread: Implement pthread_attr_[set|get]stackaddr 2023-01-24 13:53:02 -03:00
pthread_attr_setstackaddr.c libc/pthread: Implement pthread_attr_[set|get]stackaddr 2023-01-24 13:53:02 -03:00
pthread_attr_setstacksize.c libc/pthread: Implement pthread_attr_[set|get]stackaddr 2023-01-24 13:53:02 -03:00
pthread_barrierattr_destroy.c libs/libc/pthread: Fix nxstyle errors 2023-05-10 13:04:35 +02:00
pthread_barrierattr_getpshared.c libs/libc/pthread: Fix nxstyle errors 2023-05-10 13:04:35 +02:00
pthread_barrierattr_init.c libs/libc/pthread: Fix nxstyle errors 2023-05-10 13:04:35 +02:00
pthread_barrierattr_setpshared.c libs/libc/pthread: Fix nxstyle errors 2023-05-10 13:04:35 +02:00
pthread_barrierdestroy.c pthread_barrier:don't destory when barrier used 2022-11-11 08:56:48 +08:00
pthread_barrierinit.c arch: remove unnecessary sem_setprotocol code 2023-03-17 16:53:19 -03:00
pthread_cleanup.c sched/tls: remove PTHREAD_CLEANUP from Kconfig 2023-06-14 12:00:48 +08:00
pthread_condattr_destroy.c
pthread_condattr_getclock.c
pthread_condattr_getpshared.c libs/libc/pthread: Fix nxstyle errors 2023-05-12 18:00:15 +03:00
pthread_condattr_init.c
pthread_condattr_setclock.c
pthread_condattr_setpshared.c libs/libc/pthread: Fix nxstyle errors 2023-05-12 18:00:15 +03:00
pthread_conddestroy.c
pthread_condinit.c arch: remove unnecessary sem_setprotocol code 2023-03-17 16:53:19 -03:00
pthread_condtimedwait.c
pthread_create.c
pthread_exit.c sched/tls: remove PTHREAD_CLEANUP from Kconfig 2023-06-14 12:00:48 +08:00
pthread_get_stackaddr_np.c
pthread_get_stacksize_np.c
pthread_getname_np.c
pthread_getspecific.c
pthread_keycreate.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
pthread_keydelete.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
pthread_kill.c sched: Implement tkill/tgkill 2023-01-26 08:11:56 +02:00
pthread_mutex_lock.c
pthread_mutexattr_destroy.c
pthread_mutexattr_getprotocol.c
pthread_mutexattr_getpshared.c
pthread_mutexattr_getrobust.c
pthread_mutexattr_gettype.c
pthread_mutexattr_init.c pthread: fix typo with CONFIG_PTHREAD_MUTEX_DEFAULT_PRIO_INHERIT 2022-09-05 15:36:23 +02:00
pthread_mutexattr_setprotocol.c
pthread_mutexattr_setpshared.c
pthread_mutexattr_setrobust.c
pthread_mutexattr_settype.c
pthread_once.c libc/pthread: Return EINVAL when input parameter incorrect at pthread_once 2023-05-12 01:06:23 +08:00
pthread_rwlock_rdlock.c sched/tls: remove PTHREAD_CLEANUP from Kconfig 2023-06-14 12:00:48 +08:00
pthread_rwlock_wrlock.c sched/tls: remove PTHREAD_CLEANUP from Kconfig 2023-06-14 12:00:48 +08:00
pthread_rwlock.c
pthread_rwlockattr_destroy.c libs/libc/pthread: Fix nxstyle errors 2023-05-10 13:04:35 +02:00
pthread_rwlockattr_getpshared.c libs/libc/pthread: Fix nxstyle errors 2023-05-10 13:04:35 +02:00
pthread_rwlockattr_init.c libs/libc/pthread: Fix nxstyle errors 2023-05-10 13:04:35 +02:00
pthread_rwlockattr_setpshared.c libs/libc/pthread: Fix nxstyle errors 2023-05-10 13:04:35 +02:00
pthread_setcancelstate.c
pthread_setcanceltype.c
pthread_setname_np.c
pthread_setspecific.c
pthread_spinlock.c
pthread_testcancel.c
pthread_yield.c