zephyr/scripts
Martí Bolívar d6f5f51f37 scripts: fix west zephyr-export error handling
Fix two issues:

1. The script assumes the default CMake generator build tool
   platform is installed. On Linux at least, that's Make instead
   of Ninja, but Make might not be installed since Zephyr recommends
   Ninja. On Windows, that might be VS Code or nmake.

   Calling `cmake -P pristine` instead of `cmake --build <path>
   --target pristine` has the benefit of removing the dependency on a
   build command, and hence the default generator is not relevant.

2. It also assumes run_cmake() returns control, and therefore pristine
   can be run.

   However, if the cmake command fails hard (say, due to issue #1
   before this patch), run_cmake() throws an exception instead.

   Fix that by trying to run the pristine target in a finally block
   instead, and adding some manual cleanup steps in case the build
   system is in a bad state and pristine fails too.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
Signed-off-by: Torsten Rasmussen <torsten.rasmussen@nordicsemi.no>
2020-04-16 07:46:18 -04:00
..
checkpatch
ci ci: if we are only changing doc/ files, no sanitycheck run 2020-04-11 08:40:54 -04:00
coccinelle scripts/coccinelle: fix int_literal_to_timeout for K_THREAD_DEFINE 2020-04-15 08:28:57 -05:00
dts edtlib: handle include in child-binding 2020-04-15 08:27:42 -05:00
footprint
gitlint
kconfig cmake: kconfig: pass EXTRA_DTC_FLAGS to kconfig for EDT init 2020-04-16 06:07:24 -05:00
net
release
sanity_chk sanitycheck: update old reports when called with --only-failed 2020-04-14 12:50:41 -04:00
support
tests/sanitycheck sanitycheck: fix testsuite 2020-03-30 09:59:42 -04:00
tracing
west_commands scripts: fix west zephyr-export error handling 2020-04-16 07:46:18 -04:00
.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 ci: do not use latest breathe release for docs 2020-04-07 18:51:13 -04:00
requirements-extras.txt
requirements-run-test.txt manifest: upgrade mcuboot 2020-03-31 07:18:06 +02:00
requirements.txt
sanitycheck sanitycheck: infer ZEPHYR_BASE if unset 2020-04-15 14:42:21 -04:00
series-push-hook.sh
spelling.txt
subfolder_list.py
tags.sh
valgrind.supp
west-commands.yml cmake: West extension command for Zephyr config package registration 2020-03-27 16:23:46 +01:00
zephyr_module.py