zephyr/scripts
Ulf Magnusson 5402662dd9 cmake: kconfig: Fix rerunning cmake after Kconfig warnings
Commit b3d165f ("scripts: kconfig: Handle warnings generated
during evaluation") made it common for kconfig.py to fail after writing
zephyr/.config. This confuses the configuration fragment checksum logic
in cmake/kconfig.cmake, because it expects the saved checksum file to
exist if zephyr/.config exists.

The end result is a CMake error when rerunning the configuration after
non-whitelisted Kconfig warnings.

Fix it by only writing zephyr/.config (and zephyr/include/autoconf.h) in
kconfig.py if there are no warnings-turned-errors.

Also check if the saved checksum file exists in kconfig.cmake before
trying to open it. Normally this shouldn't happen though.

Move the writing of the checksum file to before writing zephyr/.config
as well. That way, zephyr/.config only gets written if the other
operations succeed.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-08-02 19:15:26 +02:00
..
checkpatch scripts: cleanup scripts directory 2018-04-03 09:28:09 -04:00
ci check-compliance: Fix list_undef_kconfig_refs.py for external projects 2018-06-27 19:14:22 +02:00
cmake Introduce cmake-based rewrite of KBuild 2017-11-08 20:00:22 -05:00
cross_compiler toolchains: fix xtools configurations 2017-10-12 16:27:12 -05:00
dts scripts/extract/globals: treat node alternate names as 'aliases' 2018-07-05 11:28:53 -05:00
footprint size_report: Don't assume all paths start with ZEPHYR_BASE 2018-01-29 23:59:16 +05:30
gitlint gitlint: fix check for line_count 2018-01-11 10:48:03 -05:00
kconfig cmake: kconfig: Fix rerunning cmake after Kconfig warnings 2018-08-02 19:15:26 +02:00
meta/west scripts: west: sync with upstream 2018-07-30 17:56:21 -04:00
sanity_chk sanitycheck: allow blacklisting boards 2018-07-24 09:58:18 -04:00
support scripts: make runner a west subpackage 2018-05-19 07:01:39 +03:00
.gitignore
check_host_is_ok.py cmake: Give descriptive error to user when cloned with core.autocrlf 2018-01-10 22:12:27 -05:00
check_link_map.py scripts: python: cleanup script and fix PEP8 issues 2018-01-03 19:03:41 -05:00
checkpatch.pl checkpatch: downgrade COMPLEX_MACRO to a warning 2018-05-08 08:56:12 -07:00
checkstack.pl
dir_is_writeable.py cmake: Add function for checking if a directory is write-able 2018-04-27 12:06:02 +02:00
elf_helper.py Fix struct offsets (DWARF v2 compatibility) 2018-05-25 16:49:42 +02:00
file2hex.py scripts: python: cleanup script and fix PEP8 issues 2018-01-03 19:03:41 -05:00
filter-known-issues.py scripts: filter-known-issues: Add extra newline 2018-07-12 23:11:46 -04:00
gen_alignment_script.py arm: Add app data section alignment constraints 2018-02-06 15:31:16 -08:00
gen_app_smem.py userspace: compartmentalized app memory organization 2018-07-25 12:02:01 -07:00
gen_gdt.py cmake: Fix "make VERBOSE=1" 2018-01-10 22:14:53 -05:00
gen_idt.py gen_isr_tables: Delete the dead code accompanying .intList.num_isrs 2018-06-25 12:54:49 -07:00
gen_kobject_list.py scripts: generalize kobject -> enum naming 2018-05-23 11:37:47 -07:00
gen_mmu_x86.py cmake: Fix "make VERBOSE=1" 2018-01-10 22:14:53 -05:00
gen_offset_header.py scripts: python: cleanup script and fix PEP8 issues 2018-01-03 19:03:41 -05:00
gen_priv_stacks.py scripts: Covert scripts to use elf_helper.py 2018-02-06 15:31:16 -08:00
gen_syscall_header.py gen_syscall_header.py: fix include issue 2018-03-28 20:52:08 -04:00
gen_syscalls.py gen_syscalls.py: do not output data to stdout 2018-07-26 00:53:45 -04:00
parse_syscalls.py userspace: adjust syscall generation scripts 2018-07-24 14:39:38 -04:00
process_gperf.py arm: Generate privileged stacks 2018-02-06 15:31:16 -08:00
qemu-machine-hack.py scripts: python: cleanup script and fix PEP8 issues 2018-01-03 19:03:41 -05:00
requirements.txt doc: scripts: Updates for pyocd v0.11.1 2018-07-27 00:54:55 +02:00
sanitycheck userspace: compartmentalized app memory organization 2018-07-25 12:02:01 -07:00
spelling.txt
subfolder_list.py cmake: Using symlinks on unix like os'es for dependencies 2018-06-19 17:00:27 +02:00
tags.sh scripts: fix tags.sh to current source tree 2018-01-15 18:30:28 -05:00
waitpid
west scripts: create meta-tool package, "west" 2018-05-19 07:01:39 +03:00
west-win.py scripts: create meta-tool package, "west" 2018-05-19 07:01:39 +03:00