zephyr/scripts
Ulf Magnusson a328c5190d kconfig: Add linting script
Add a cleaned-up version of a script I used to find a bunch of unused
symbols and some other Kconfig issues. It's set up to be run directly,
with few environment dependencies.

West is required, because the checks need to see Kconfig files and
source code from all modules.

Checks so far:

 - Symbols that can never be anything but n/empty

 - Symbols that look unused

 - menuconfig symbols with empty menus

 - Symbols only defined in Kconfig.defconfig files

See the help strings for the command-line flags for more information.

Some of these checks could probably be checked in CI later, though the
always-n and unused-symbol checks are a bit heuristic and might need a
lot of whitelisting.

Another reason I want to get this in is to have a clean standalone
reference for how to set up the environment for parsing the Kconfig
files. It's gotten trickier over time.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-11-07 15:32:50 +01:00
..
checkpatch
ci ci: cleanup test manifests 2019-10-11 20:05:03 +02:00
coccinelle scripts/coccinelle: add k_thread create/define to timeout standardization 2019-10-09 08:38:10 -04:00
dts dts: edtlib: Turn edt.required_by()/depends_on() into Node attributes 2019-11-06 17:33:59 -08:00
footprint scripts: footprint: Fix pylint warnings 2019-09-14 13:35:08 +08:00
gitlint
kconfig kconfig: Add linting script 2019-11-07 15:32:50 +01:00
release scripts: add script for listing closed bugs 2019-10-22 15:11:09 -04:00
sanity_chk sanitycheck: Add functions to query device tree for filters 2019-11-04 09:02:14 -05:00
support
west_commands scripts: runners: sort runner lists 2019-11-06 17:31:53 -08:00
.gitignore
checkpatch.pl
checkstack.pl
coccicheck
dir_is_writeable.py
elf_helper.py scripts: elf_helper.py: fix C++ template constexpr value processing 2019-09-17 20:49:34 +08:00
file2hex.py
filter-known-issues.py filter-known-issues.py: Remove '== True' test 2019-09-08 22:20:20 -04:00
gen_app_partitions.py
gen_cfb_font_header.py
gen_gcov_files.py
gen_kobject_list.py samples: add userspace producer/consumer sample 2019-10-31 14:46:08 +01:00
gen_offset_header.py
gen_priv_stacks.py
gen_relocate_app.py headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
gen_syscall_header.py userspace: Support for split 64 bit arguments 2019-09-12 11:31:50 +08:00
gen_syscalls.py userspace: don't split args on 64-bit systems 2019-11-06 09:04:16 -08:00
mergehex.py
parse_syscalls.py
process_gperf.py
requirements.txt scripts/requirements: update PyYAML to >=5.1 2019-11-05 08:30:30 -05:00
sanitycheck sanitycheck: fix filtering for boards without DTS 2019-11-06 13:48:08 +01:00
series-push-hook.sh
spelling.txt
subfolder_list.py
tags.sh
valgrind.supp lvgl: Suppress memory leak errors detected by valgrind 2019-10-21 12:26:35 -07:00
west-commands.yml
zephyr_module.py cmake: ensure zephyr_module.py creates posix path output for cmake 2019-11-06 16:18:43 +01:00