zephyr/scripts
Fabio Baltieri 79856e7637 west: runners: blackmagicprobe: guess the gdb port based on the OS
Add some logic in blackmagicprobe.py to guess the GDB serial port based
on the OS instead of just trying the flag or /dev/ttyACM0.

The new logic explicitly looks for the well known path for BMP on Linux
(/dev/ttyBmpGdb), so that we can remove it from the board files that
have it set explicitly right now. At the same time it still allows
setting the port from the flag and also checks an environment variable,
so that it can be used for systems with multiple probes.

As a fallback, it looks for a valid serial port, picking the first one
(the probe creates two, the GDB one is the first one), and raise an
exception if nothing is found.

Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
2023-01-19 10:16:00 +01:00
..
build scripts: build: update gen_relocate_app.py to use new argument separators 2023-01-17 18:08:37 +01:00
checkpatch scripts: checkpatch: add Atmel Pwm typedef 2022-07-12 17:51:23 +02:00
ci scripts: compliance: add support for YAMLLint 2023-01-04 17:29:23 +01:00
coccinelle everywhere: fix typos 2022-03-18 13:24:08 -04:00
coredump debug: coredump: add xtensa intel adsp, support toolchains 2022-06-23 15:44:45 -04:00
dts python-devicetree: bump version to 0.0.2 2023-01-16 11:19:54 +00:00
footprint footprint: Update conf files for nrf5340_cpunet rpmsg 2022-11-11 08:46:46 +00:00
generate_usb_vif usb-c: Generate USB-C connector VIF policies XML file 2022-12-02 08:46:04 -06:00
gitlint gitlint: Add "commit" to violation messages 2022-12-07 07:58:05 -05:00
kconfig scripts: kconfig: Add functions for array/chosen props 2023-01-10 07:10:07 -08:00
logging/dictionary scripts: dictionary: Initialise Colorama during module load 2022-05-24 09:00:16 -07:00
net scripts: net: add enumerate_http_status.py 2022-10-12 09:02:21 -04:00
pylib twister: run as device, even if simulation is supported 2023-01-17 16:10:17 -05:00
release scripts: release: strip title names 2022-09-27 16:51:45 -05:00
schemas/twister twister: Platform key for test suites 2023-01-12 10:30:57 -05:00
support scripts: Simplify code with sys.exit(<string>) 2019-09-08 12:34:16 +02:00
tests twister: Split up argument parsing into smaller functions 2023-01-13 15:39:04 -08:00
tracing scripts: tracing: Initialise Colorama during module load 2022-05-24 09:00:16 -07:00
utils scripts/utils/migrate_mcumgr_kconfigs.py: Script for migrating MCUmgr 2022-12-22 12:36:34 +01:00
west_commands west: runners: blackmagicprobe: guess the gdb port based on the OS 2023-01-19 10:16:00 +01: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 scripts: dump_bugs_pickle: strip bug titles 2022-09-27 16:51:45 -05:00
gen_gcov_files.py scripts: gen_gcov_files.py: add argument help text 2020-06-13 16:33:22 -04:00
get_maintainer.py scripts: get_maintainer: Use SafeLaoder for yaml 2022-04-13 13:48:18 -07:00
github_helpers.py scripts: add github_helpers.py 2022-05-24 18:48:03 +02:00
list_boards.py scripts: remove ZEPHYR_BASE as default root for board listing 2022-08-18 14:29:14 +02:00
make_bugs_pickle.py scripts: add make_bugs_pickle.py 2022-05-24 18:48:03 +02: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: Make review requests more deterministic 2022-10-20 23:52:49 +09: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 scripts: modules: Mark the build as tainted if blobs present 2022-08-29 15:57:59 +02:00