nuttx/crypto
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
..
aes.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
blake2s.c crypto: Haltian Ltd: update licenses to Apache 2021-11-15 06:49:32 -06:00
blf.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
cast.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
castsb.h crypto:convert code style form openbsd to nuttx 2022-12-14 02:33:56 +08:00
chacha_private.h crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
chachapoly.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
cmac.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
crypto.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
cryptodev.c crypto:support crypto can handle streaming data 2023-01-17 01:19:38 +08:00
cryptosoft.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
des_locl.h crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
ecb3_enc.c Typo fixes. 2023-02-17 11:17:11 -03:00
ecb_enc.c Typo fixes. 2023-02-17 11:17:11 -03:00
gmac.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
hmac_buff.c crypto:add some hardware support 2022-12-14 02:33:56 +08:00
hmac.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
idgen.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
Kconfig crypto:add some hardware support 2022-12-14 02:33:56 +08:00
key_wrap.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
Makefile crypto:add some hardware support 2022-12-14 02:33:56 +08:00
md5.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
podd.h crypto:convert code style form openbsd to nuttx 2022-12-14 02:33:56 +08:00
poly1305.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
random_pool.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
rijndael.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
rmd160.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
set_key.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
sha1.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
sha2.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
siphash.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
sk.h crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
spr.h crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00
testmngr.c nuttx: replace all ARRAY_SIZE()/ARRAYSIZE() to nitems() 2023-02-09 20:05:44 +08:00
testmngr.h crypto: update licenses to Apache 2021-05-27 08:07:25 +09:00
xform.c crypto:support nuttx /dev/crypto 2022-12-14 02:33:56 +08:00