nuttx/boards/arm
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
..
a1x/pcduino-a10 Remove OK macro from the code base 2023-02-02 13:58:16 +01:00
am335x/beaglebone-black Remove OK macro from the code base 2023-02-02 13:58:16 +01:00
c5471/c5471evm Improvements in TCP connections allocation. 2023-02-20 09:06:46 +08:00
cxd56xx build: add initial cmake build system 2023-07-08 13:50:48 +08:00
dm320/ntosd-dm320 Remove OK macro from the code base 2023-02-02 13:58:16 +01:00
efm32 arch/arm/toolchain: migrate the toolchain define to arch/arm/Kconfig 2022-09-16 14:47:27 +08:00
eoss3/quickfeather boards/arm: remove -funwind-tables from boards Make.defs 2022-11-05 20:36:35 +08:00
fvp-v8r-aarch32/fvp-armv8r-aarch32 board: add CortexR52 FVP AEMv8R platform 2023-06-01 09:51:03 -03:00
gd32f4 add gd32f470 support 2023-06-27 14:59:33 +08:00
imx6/sabre-6quad build: add initial cmake build system 2023-07-08 13:50:48 +08:00
imxrt sched/tls: remove PTHREAD_CLEANUP from Kconfig 2023-06-14 12:00:48 +08:00
kinetis Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
kl Indent the include statement by two spaces 2023-05-16 12:34:32 -03:00
lc823450/lc823450-xgevk boars/spawn_proxy: remove all CONFIG_POSIX_SPAWN_PROXY_STACKSIZE 2023-04-27 17:35:58 +08:00
lpc17xx_40xx symtab: Remove the unnessary inclusion of nuttx/symtab.h 2023-07-06 09:24:02 -03:00
lpc31xx Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
lpc43xx Improvements in TCP connections allocation. 2023-02-20 09:06:46 +08:00
lpc54xx/lpcxpresso-lpc54628 signal: Remove configurable assignment of signal numbers 2023-03-26 08:31:36 -06:00
lpc214x Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
lpc2378/olimex-lpc2378 boards/arm: Remove "LDFLAGS += -g" whichi is already added by Toolchain.defs 2022-05-16 11:17:08 +03:00
max326xx/max32660-evsys Move warning option from Make.defs to Toolchain.defs 2022-05-15 15:40:35 +03:00
moxart/moxa boards: Fix the CI build errors for telnetd 2022-11-07 16:06:00 +01:00
nrf52 boards/thingy52: add sx1509 support 2023-06-27 14:44:00 -03:00
nrf53 build: Replace "$(shell $(INCDIR) $(CC) ...)" with $(INCDIR_PREFIX) 2023-06-23 00:11:25 +03:00
nrf91 boards: initial support for nrf9160-dk 2023-07-02 10:10:35 -03:00
nuc1xx/nutiny-nuc120 Indent the include statement by two spaces 2023-05-16 12:34:32 -03:00
phy62xx/phy6222 Indent the include statement by two spaces 2023-05-16 12:34:32 -03:00
rp2040 build: Replace "$(shell $(INCDIR) $(CC) ...)" with $(INCDIR_PREFIX) 2023-06-23 00:11:25 +03:00
s32k1xx Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
s32k3xx Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
sam34 Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
sama5 boards/arm/sama5/jupiter-nano/Kconfig: Fix Kconfig style 2023-05-10 22:51:11 +08:00
samd2l2 Fix typos (s/FRQUENCY/FREQUENCY/) 2023-05-13 00:31:26 +08:00
samd5e5 Typo fixes. 2023-02-17 11:17:11 -03:00
samv7 build: Replace "$(shell $(INCDIR) $(CC) ...)" with $(INCDIR_PREFIX) 2023-06-23 00:11:25 +03:00
stm32 build: add initial cmake build system 2023-07-08 13:50:48 +08:00
stm32f0l0g0 build: Replace "$(shell $(INCDIR) $(CC) ...)" with $(INCDIR_PREFIX) 2023-06-23 00:11:25 +03:00
stm32f7 stm32f777zit6-meadow: Fix external RAM pinout and add board profile 2023-06-20 10:04:33 +08:00
stm32h7 sched/tls: remove PTHREAD_CLEANUP from Kconfig 2023-06-14 12:00:48 +08:00
stm32l4 sdcard: update sdcard detection to avoid 0xff assignment to bool type 2023-06-11 12:55:29 +08:00
stm32l5 Update stm32l562e-dk:nsh 2023-05-25 16:04:30 +08:00
stm32u5 build: add initial cmake build system 2023-07-08 13:50:48 +08:00
stm32wb Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
stm32wl5/nucleo-wl55jc Indent the include statement by two spaces 2023-05-16 12:34:32 -03:00
str71x/olimex-strp711 Indent the include statement by two spaces 2023-05-16 12:34:32 -03:00
tiva build: add initial cmake build system 2023-07-08 13:50:48 +08:00
tlsr82/tlsr8278adk80d boards/arm/tlsr82/tlsr8278adk80d/Kconfig: Fix Kconfig style 2023-05-10 22:51:11 +08:00
tms570 armv7-r/tms570: fix build break 2022-09-22 02:22:18 +08:00
xmc4 add userled driver initialization 2023-06-30 10:29:33 -03:00