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
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_foreach.c mm_heap: dump and stat the mm_heapend node also 2023-06-17 19:37:14 +08:00
mm_free.c
mm_heapmember.c
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_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