nuttx/sched/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
Make.defs system: pthread_barrierwait should be moved to kernel space 2023-04-25 15:34:40 +08:00
pthread_barrierwait.c system: pthread_barrierwait should be moved to kernel space 2023-04-25 15:34:40 +08:00
pthread_cancel.c sched/tls: remove PTHREAD_CLEANUP from Kconfig 2023-06-14 12:00:48 +08:00
pthread_completejoin.c sched: fix pthread_exit crash 2023-06-28 15:17:17 +08:00
pthread_condbroadcast.c
pthread_condclockwait.c signal: remove unused SIGCONDTIMEDOUT 2023-03-23 17:17:25 -06:00
pthread_condsignal.c
pthread_condwait.c sched/pthread: fix race condition on pthread_cond_wait() 2023-06-28 02:25:05 +08:00
pthread_create.c addrenv/kstack: Allocate the kernel stack before initializing tcb 2023-06-09 13:53:27 +08:00
pthread_detach.c sched/pthread: Return ESRCH when the task is in the process of exit. 2023-06-15 10:12:25 -03:00
pthread_exit.c sched: fix pthread_exit crash 2023-06-28 15:17:17 +08:00
pthread_findjoininfo.c sched/pthread: Return ESRCH when the task is in the process of exit. 2023-06-15 10:12:25 -03:00
pthread_getaffinity.c
pthread_getschedparam.c
pthread_initialize.c sched/pthread: add missing FAR and fix alignment issues 2023-07-07 17:39:39 -03:00
pthread_join.c nuttx: replace getpid() with nxsched_getpid() in kernel code 2023-07-07 17:39:39 -03:00
pthread_mutex.c
pthread_mutexconsistent.c
pthread_mutexdestroy.c
pthread_mutexinconsistent.c
pthread_mutexinit.c
pthread_mutextimedlock.c sched/pthread: repalce sched_lock to enter_critical_section 2023-04-24 01:54:44 +08:00
pthread_mutextrylock.c sched/getpid: replace syscall getpid/tid/ppid() to kernel version 2023-02-02 10:33:01 +08:00
pthread_mutexunlock.c pthread: sched_lock should replace with enter_critical_secion 2023-05-06 23:12:20 +08:00
pthread_release.c
pthread_setaffinity.c
pthread_setschedparam.c
pthread_setschedprio.c
pthread_sigmask.c
pthread.h sched/pthread: add missing FAR and fix alignment issues 2023-07-07 17:39:39 -03:00