mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-09 07:55:20 +00:00
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> |
||
---|---|---|
.. | ||
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 | ||
user_wordsize.py | ||
valgrind.supp | ||
west-commands.yml | ||
zephyr_module.py |