zephyr/scripts
Martí Bolívar 88aa873fbc twister: improve logging of cmake commands
With verbose output enabled, twister logs the cmake arguments as a
python array whenever it invokes cmake to generate a build system.

This is clunky output for manual reproduction, because it forces the
developer to manually join the arguments together for consumption by
the shell.

As an enhancement for this use case, use the standard library
shlex.join() function to produce a string that can be copy/pasted
directly into the shell on POSIX platforms.

We should use this function instead of str.join, because it correctly
handles things like shell quoting for options with spaces in them.

This function is not available on Windows, so we fall back on behavior
that is similar to the old one there.

The main difference on Windows is that the output now includes the
path to cmake as well, and not just its arguments. (This is the same
on POSIX, and is intended to help debug if multiple cmakes are
installed on the same machine.)

We are running cmake from a couple of different places, so doing this
cleanly requires adding a shared module with the platform abstraction.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-08-26 08:53:14 +02:00
..
build arch/riscv: support CONFIG_CODE_DATA_RELOCATION 2022-08-24 10:08:06 +02:00
checkpatch scripts: checkpatch: add Atmel Pwm typedef 2022-07-12 17:51:23 +02:00
ci scripts: compliance: Add commit range info output 2022-08-24 07:40:27 -04:00
coccinelle
coredump debug: coredump: add xtensa intel adsp, support toolchains 2022-06-23 15:44:45 -04:00
dts edtlib: allow const arrays 2022-08-25 18:11:27 -07:00
footprint footprint: Add Hearing Access Hearing Aid BT Audio sample 2022-08-10 13:08:18 +02:00
gitlint
kconfig scripts: fix "kconfig: tweak dt_chosen_label" 2022-08-19 07:03:31 -05:00
logging/dictionary scripts: dictionary: Initialise Colorama during module load 2022-05-24 09:00:16 -07:00
net
pylib/twister twister: improve logging of cmake commands 2022-08-26 08:53:14 +02:00
release scripts: release: list_backports: use older python dict merge method 2022-07-19 00:20:13 +09:00
schemas/twister
support
tests twister: fix bug retrieving subtests 2022-08-12 17:39:35 +02:00
tracing scripts: tracing: Initialise Colorama during module load 2022-05-24 09:00:16 -07:00
utils
west_commands west: blobs: Finally fix the --format option handling 2022-08-24 17:31:24 +02:00
.gitignore
checkpatch.pl scripts: checkpatch: allow leading spaces in multi-lines macros 2022-06-17 10:18:37 +02:00
checkstack.pl
coccicheck
dump_bugs_pickle.py scripts: add dump_bugs_pickle.py 2022-06-03 19:19:25 -05:00
gen_gcov_files.py
get_maintainer.py
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
requirements-compliance.txt scripts: Upgrade to junitparser v2+ 2022-08-03 14:04:36 -04:00
requirements-doc.txt doc: update requirements 2022-08-12 11:04:26 +02:00
requirements-extras.txt scripts: requirements: extras: Suitable clang-format version 2022-08-02 15:17:18 +02:00
requirements-run-test.txt soc: xtensa: tools: remove dependency of netifaces package 2022-08-16 22:51:53 -07:00
requirements.txt
series-push-hook.sh
set_assignees.py scripts: set_assignee: handle exceptions 2022-07-18 21:41:22 -04:00
spelling.txt
tags.sh
twister twister: Don't run coverage report when --build-only is used 2022-07-28 05:58:52 -04:00
valgrind.supp
west-commands.yml modules: Basic binary blob infrastructure 2022-08-16 05:59:02 -07:00
zephyr_module.py modules: Basic binary blob infrastructure 2022-08-16 05:59:02 -07:00