zephyr/scripts
Torsten Rasmussen cb690ec56e cmake: implement build infrastructure for supporting SCA tools.
Static code analyser (SCA) tools are important in software development.

CMake offers built-in support for some tools, such as cppcheck and
clang-tidy.

Other tools, such as sparse, are not directly supported.

This commit provides a uniform way for users to specify a supported
SCA using `ZEPHYR_SCA_VARIANT=<tool>` which is consistent with how
toolchains are specified.
ZEPHYR_SCA_VARIANT can be set using `-D` or in environment.

Support for an SCA tool is done in `cmake/sca/<tool>/sca.cmake`.
SCA_ROOT can be used to specify additional search paths when looking up
implementation for a tool. SCA_ROOT can also be specified in
`zephyr/module.yml` as setting. This makes it possible to provide SCA
tool implementation as part of a Zephyr module.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2023-01-27 20:28:58 +09:00
..
build treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
checkpatch scripts: checkpatch: add Atmel Pwm typedef 2022-07-12 17:51:23 +02:00
ci scripts: ci: Enable pylint check for argument parser abbreviations 2023-01-26 20:12:36 +09:00
coccinelle everywhere: fix typos 2022-03-18 13:24:08 -04:00
coredump treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
dts treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
footprint treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
generate_usb_vif treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gitlint gitlint: Add "commit" to violation messages 2022-12-07 07:58:05 -05:00
kconfig treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
logging/dictionary treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
net scripts: net: add enumerate_http_status.py 2022-10-12 09:02:21 -04:00
pylib treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
pylint/checkers scripts: pylint: Add argument parser abbreviation checker 2023-01-26 20:12:36 +09:00
release treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
schemas/twister twister: docs: Update twister docs with quarantine 2023-01-19 06:51:00 -05:00
support treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
tests twister: adapt tests after revert of namespacing 2023-01-24 20:21:57 -05:00
tracing treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
utils treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
west_commands treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
.gitignore cleanup: rename sanitycheck references to twister 2021-01-14 07:50:52 -06:00
checkpatch.pl checkpatch: update --exclude docs 2022-12-01 15:48:30 +01:00
checkstack.pl First commit 2015-04-10 16:44:37 -07:00
coccicheck scripts: Allow use of bash outside of /bin 2022-03-08 11:11:10 +01:00
dump_bugs_pickle.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
gen_gcov_files.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
get_maintainer.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
github_helpers.py scripts: add github_helpers.py 2022-05-24 18:48:03 +02:00
list_boards.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
make_bugs_pickle.py treewide: Disable automatic argparse argument shortening 2023-01-26 20:12:36 +09:00
requirements-base.txt requirements: bump pyelftools to >=0.27 2022-06-10 09:46:31 +02:00
requirements-build-test.txt scripts: move pip pykwalify from requirements-build-test to -base 2021-01-18 16:56:24 -05:00
requirements-compliance.txt scripts: compliance: add support for YAMLLint 2023-01-04 17:29:23 +01:00
requirements-doc.txt doc: Do not use Sphinx 5.2.0.post0 2022-09-25 10:37:32 +02:00
requirements-extras.txt clang-format: Enable InsertBraces option 2022-12-20 22:51:57 +01:00
requirements-run-test.txt soc: xtensa: tools: remove dependency of netifaces package 2022-08-16 22:51:53 -07:00
requirements.txt python3: add check_compliance package requirements 2020-08-11 14:49:48 -04:00
series-push-hook.sh scripts: series-push-hook: Use main as base comparison branch 2021-05-27 15:55:43 -05:00
set_assignees.py scripts: set_assignee: don't skip assignment on too many labels 2023-01-26 14:57:29 -05:00
spelling.txt scripts: updated spelling.txt file 2017-07-14 12:57:40 +03:00
tags.sh scripts: Update paths on tags.sh 2021-02-19 05:28:09 -06:00
twister twister: move main to twisterlib/twister_main.py 2023-01-13 15:39:04 -08:00
valgrind.supp lvgl: Suppress memory leak errors detected by valgrind 2019-10-21 12:26:35 -07:00
west-commands.yml west: west twister integration 2023-01-13 15:39:04 -08:00
zephyr_module.py cmake: implement build infrastructure for supporting SCA tools. 2023-01-27 20:28:58 +09:00