zephyr/scripts
Kumar Gala 299bfd0553 scripts: dts: gen_defines: Fix issue if there are no compats
We get the following error:

  ValueError: max() arg is an empty sequence

if the compatiable section of the device tree is empty or doesn't exist.
Fix this by havingin max_len get a default value of 0.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-03-26 03:22:49 -05:00
..
checkpatch
ci
coccinelle
dts
footprint
gitlint
kconfig
net
release
sanity_chk
support
tests/sanitycheck
tracing
west_commands
.gitignore
checkpatch.pl
checkstack.pl
coccicheck
dir_is_writeable.py
file2hex.py
filter-known-issues.py
gen_app_partitions.py
gen_cfb_font_header.py
gen_gcov_files.py
gen_kobject_list.py
gen_offset_header.py
gen_relocate_app.py
gen_syscalls.py
mergehex.py
parse_syscalls.py
process_gperf.py
requirements-base.txt
requirements-build-test.txt
requirements-doc.txt
requirements-extras.txt
requirements-run-test.txt
requirements.txt
sanitycheck
series-push-hook.sh
spelling.txt
subfolder_list.py
tags.sh
valgrind.supp
west-commands.yml
zephyr_module.py