nuttx/binfmt
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
..
libelf build: add initial cmake build system 2023-07-08 13:50:48 +08:00
libnxflat build: add initial cmake build system 2023-07-08 13:50:48 +08:00
binfmt_copyargv.c binfmt: Let binfmt_copyargv return error code 2022-10-19 08:22:56 +09:00
binfmt_coredump.c elf/coredump: add support of dump task stack without memory segments 2023-05-24 22:34:47 +08:00
binfmt_dumpmodule.c sched/spawn: Support task_spawnattr_[set|get]stackaddr 2022-10-31 12:46:58 +09:00
binfmt_exec.c sched/spawn: remove spawn proxy thread to simplify task/posix_spawn() 2023-04-27 17:35:58 +08:00
binfmt_execmodule.c sched: Remove the unnecessary cast from pid_t to int 2023-06-19 11:37:34 +03:00
binfmt_execsymtab.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_exit.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_globals.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_initialize.c binfmt: Decouple builtin from binfs file system 2022-02-14 09:35:35 -03:00
binfmt_loadmodule.c Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 19:45:24 +02:00
binfmt_register.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt_unloadmodule.c sched/addrenv: Remove up_addrenv_restore 2023-02-08 02:51:23 +08:00
binfmt_unregister.c Author: Gregory Nutt: update licenses to Apache 2021-02-05 12:15:56 -03:00
binfmt.h binfmt: Let binfmt_copyargv return error code 2022-10-19 08:22:56 +09:00
builtin.c binfmt: Check return pointer. 2022-09-03 19:39:51 +08:00
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
elf.c binfmt: Immediately exit from elf_loadbinary if elf format isn't supported 2023-07-03 00:52:16 +08:00
Kconfig binfmt/elf: Allow the userspace ELF type to be defined by board configuration. 2023-06-28 15:16:28 +08:00
Makefile binfmt/elf: add bare metal coredump support 2021-11-23 20:48:00 -06:00
nxflat.c Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00