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_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
binfmt_exit.c
binfmt_globals.c
binfmt_initialize.c
binfmt_loadmodule.c
binfmt_register.c
binfmt_unloadmodule.c sched/addrenv: Remove up_addrenv_restore 2023-02-08 02:51:23 +08:00
binfmt_unregister.c
binfmt.h
builtin.c
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
nxflat.c Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00