nuttx/sched/sched
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 sync ps/assert output 2023-02-17 23:35:44 +08:00
sched_addblocked.c
sched_addprioritized.c sched: remove unnecessary type cast 2022-12-15 09:44:32 +08:00
sched_addreadytorun.c sched: remove unnecessary type cast 2022-12-15 09:44:32 +08:00
sched_backtrace.c
sched_cpuload_oneshot.c
sched_cpuload_period.c
sched_cpuload.c
sched_cpupause.c
sched_cpuselect.c
sched_critmonitor.c procfs: add total time running time of task 2023-04-24 19:38:29 +08:00
sched_foreach.c
sched_get_stackinfo.c nuttx: fix indentation issue 2023-03-09 16:27:07 -03:00
sched_get_stateinfo.c sched/addrenv.c: Implement re-entrancy for addrenv_select() 2023-04-25 14:33:19 +02:00
sched_getaffinity.c
sched_getcpu.c
sched_getfiles.c sched/spawn: remove spawn proxy thread to simplify task/posix_spawn() 2023-04-27 17:35:58 +08:00
sched_getparam.c
sched_getscheduler.c
sched_gettcb.c drivers/note: Replace the scritical section with spin_xxx_wo_note 2023-01-04 00:21:18 +02:00
sched_idletask.c sched/sched/sched_idletask: fix typo 2023-06-19 10:51:23 +02:00
sched_lock.c sched/sched: address performance concerns for sched_lock in non-SMP case 2023-04-27 00:40:20 +08:00
sched_lockcount.c
sched_mergepending.c sched/sched: fix scheduler lock/unlock operation for non-SMP case 2023-04-19 02:43:55 +08:00
sched_mergeprioritized.c
sched_processtimer.c
sched_releasetcb.c sched/addrenv: Fix system crash when process group has been deleted 2023-02-08 02:51:23 +08:00
sched_removeblocked.c
sched_removereadytorun.c sched: fix task_delete crash in SMP case 2023-01-18 14:11:18 +09:00
sched_reprioritize.c
sched_reprioritizertr.c
sched_resumescheduler.c
sched_roundrobin.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
sched_rrgetinterval.c
sched_self.c
sched_setaffinity.c
sched_setparam.c
sched_setpriority.c sched/sched: address performance concerns for sched_lock in non-SMP case 2023-04-27 00:40:20 +08:00
sched_setscheduler.c sched/getpid: replace syscall getpid/tid/ppid() to kernel version 2023-02-02 10:33:01 +08:00
sched_sporadic.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
sched_suspend.c
sched_suspendscheduler.c
sched_sysinfo.c
sched_thistask.c
sched_timerexpiration.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
sched_unlock.c arch: remove up_release_pending function 2022-12-16 21:29:57 +08:00
sched_verifytcb.c
sched_wait.c
sched_waitid.c
sched_waitpid.c sched/waitpid: rename nx_waitpid() to nxsched_waitpid() 2023-02-01 20:40:41 +08:00
sched_yield.c
sched.h