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: semaphore wait list optimize 2022-09-28 18:08:37 +08:00
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: Guard backtrace related code correctly 2022-10-11 00:01:35 +02:00
sched_cpuload_oneshot.c sched: Simplify the cpuload process 2022-08-18 22:11:29 +03:00
sched_cpuload_period.c sched: Simplify the cpuload process 2022-08-18 22:11:29 +03:00
sched_cpuload.c sched: Simplify the cpuload process 2022-08-18 22:11:29 +03:00
sched_cpupause.c
sched_cpuselect.c nuttx/sched: use pid to check idle task 2022-10-31 17:53:08 +09:00
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 Remove the unnessary empty line after label 2022-09-30 17:54:56 +02:00
sched_processtimer.c sched: Remove the unnecessary weak_function 2022-08-30 09:42:24 +02:00
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: semaphore wait list optimize 2022-09-28 18:08:37 +08:00
sched_removereadytorun.c sched: fix task_delete crash in SMP case 2023-01-18 14:11:18 +09:00
sched_reprioritize.c sched/semaphore: fix priority boost restoration for priority inheritance 2022-10-03 15:14:24 -03:00
sched_reprioritizertr.c nuttx/sched: move reprioritize process to public function 2022-11-22 15:29:00 +09:00
sched_resumescheduler.c SMP: fix crash when switch to new task which is still running 2022-09-17 17:37:47 +09:00
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 nuttx/sched: merge up_block_task and up_unblock_task 2022-11-22 22:59:08 +08:00
sched_suspendscheduler.c
sched_sysinfo.c nuttx/sched/sched: fix runtime error UBSan(division by zero) 2022-10-16 12:43:31 +08:00
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: remove the unused function nx_wait and nx_waitid 2022-10-28 21:19:46 +02:00
sched_waitid.c sched: remove the unused function nx_wait and nx_waitid 2022-10-28 21:19:46 +02:00
sched_waitpid.c sched/waitpid: rename nx_waitpid() to nxsched_waitpid() 2023-02-01 20:40:41 +08:00
sched_yield.c
sched.h nuttx/sched: move reprioritize process to public function 2022-11-22 15:29:00 +09:00