nuttx/mm/mm_heap
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 Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
mm_addfreechunk.c mm: support custom the mm alignment and default to be 8 2023-03-06 11:10:36 +08:00
mm_brkaddr.c semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
mm_calloc.c mm: memory allocations return valid pointer when request 0 size 2023-05-02 18:29:29 -06:00
mm_checkcorruption.c mm: support custom the mm alignment and default to be 8 2023-03-06 11:10:36 +08:00
mm_extend.c mm: move preceding to previous free node to reduce the overhead 2023-02-01 11:14:02 +08:00
mm_foreach.c mm_heap: dump and stat the mm_heapend node also 2023-06-17 19:37:14 +08:00
mm_free.c mm: move preceding to previous free node to reduce the overhead 2023-02-01 11:14:02 +08:00
mm_heapmember.c mm: Remove mm_heap_impl_s struct 2021-07-07 04:25:15 -07:00
mm_initialize.c mm: Rename MM_BACKTRACE_XXX_PID to PID_MM_XXX 2023-06-18 09:12:14 +03:00
mm_lock.c mm_lock.c: reformat preprocessor format 2023-06-24 10:54:19 -03:00
mm_mallinfo.c mm:Fix the problem that the memdump statistics of blkcont are inconsistent 2023-06-25 18:17:30 +08:00
mm_malloc_size.c mm: move preceding to previous free node to reduce the overhead 2023-02-01 11:14:02 +08:00
mm_malloc.c mm: Rename PID_MM_INVALID to PID_MM_LEAK 2023-06-18 14:26:07 +03:00
mm_memalign.c mm: support custom the mm alignment and default to be 8 2023-03-06 11:10:36 +08:00
mm_memdump.c mm:Fix the problem that the memdump statistics of blkcont are inconsistent 2023-06-25 18:17:30 +08:00
mm_realloc.c mempool:fix bug read out of bounds when realloc 2023-05-30 23:12:07 +08:00
mm_shrinkchunk.c mm: support custom the mm alignment and default to be 8 2023-03-06 11:10:36 +08:00
mm_size2ndx.c mm: support custom the mm alignment and default to be 8 2023-03-06 11:10:36 +08:00
mm_zalloc.c
mm.h Support memdump to realize incremental dump function 2023-05-22 12:31:32 +08:00