zephyr/scripts
Øyvind Rønningstad 4813f469f0 sanitycheck: Improve handling of duplicate devices
Some devices have multiple serial ports, which show as duplicates in the
hardware map. This doesn't work well when using --generate-hardware-map
to regenerate an existing map. E.g. nrf5340pdk_nrf5340_cpuapp by default
prints to the 3rd of 3 devices. If it shows up on /dev/ttyACM0,
/dev/ttyACM1, and /dev/ttyACM2, printout will come on /dev/ttyACM2.
nrf9160dk_nrf9160 also provides 3 devices, but prints to the 1st.

This patch sorts the devices by the serial port and matches multiple
duplicate entries one-to-one to retain the ordering. This way, the
correct device can be given the platform name and the others can be kept
as "unknown" so that --device-testing understands correctly
1) that there is only one device (not 3)
2) where the serial output will come.

Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
2020-07-06 10:27:22 -04:00
..
checkpatch
ci ci: do not run sanitycheck on linter config changes 2020-07-03 07:58:31 -04:00
coccinelle zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dts devicetree: add migration guide documentation and tests 2020-05-28 22:12:38 +02:00
footprint
gitlint
kconfig Bluetooth: smp: Warn on enabling several Bluetooth options 2020-06-17 17:14:33 +03:00
net scripts: net: Fix incorrect error messages 2020-05-21 14:45:07 +02:00
release
sanity_chk sanitycheck: Improve handling of duplicate devices 2020-07-06 10:27:22 -04:00
support
tests/sanitycheck sanitycheck: Testcases for report functions of TestSuite Class 2020-07-03 12:20:35 -04:00
tracing
west_commands scripts: bossac: automatically pull the flash offset from the config 2020-07-02 08:23:03 -04:00
.gitignore
checkpatch.pl Revert "checkpatch: update checkpatch to warn about C99 type usage" 2020-06-08 08:23:57 -05:00
checkstack.pl
coccicheck
dir_is_writeable.py
file2hex.py scripts: file2hex.py: PEP 8 style fix 2020-06-12 11:09:58 +02:00
filter-known-issues.py
gen_app_partitions.py
gen_cfb_font_header.py zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
gen_gcov_files.py scripts: gen_gcov_files.py: add argument help text 2020-06-13 16:33:22 -04:00
gen_kobject_list.py zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
gen_offset_header.py scripts: gen_offset_header: add argument help text 2020-05-21 14:45:24 +02:00
gen_relocate_app.py zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
gen_syscalls.py scripts: gen_syscalls: typo fix 2020-06-09 10:39:49 +02:00
mergehex.py
parse_syscalls.py userspace: net sockets are kernel objects 2020-06-03 22:33:32 +02:00
process_gperf.py scripts: process_gperf: typo fix 2020-06-09 10:40:58 +02:00
requirements-base.txt
requirements-build-test.txt tests: sanitycheck: Testcases for load_from_file and apply_filters 2020-06-15 22:27:18 -04:00
requirements-doc.txt
requirements-extras.txt
requirements-run-test.txt
requirements.txt
sanitycheck sanitycheck: fix --failed-only handling 2020-07-03 07:25:49 -04:00
series-push-hook.sh
spelling.txt
subfolder_list.py
tags.sh
user_wordsize.py
valgrind.supp
west-commands.yml
zephyr_module.py scripts: zephyr modules: introducing Zephyr module dependency handling 2020-06-12 11:07:58 +02:00