zephyr/cmake
Sebastian Bøe f10fddeb56 cmake: toolchain: Improve error feedback when toolchain is not found
Improve the error feedback when the toolchain is not found.

Currently, for some setups, presumably primarily SDK-less setups,
users can get an error message like this for certain types of
misconfigurations:

CMake Error at zephyr/cmake/extensions.cmake:984 (message):
  No such file or directory: CMAKE_READELF: 'CMAKE_READELF-NOTFOUND'
Call Stack (most recent call first):
  zephyr/cmake/compiler/gcc.cmake:14 (assert_exists)
  zephyr/cmake/toolchain.cmake:38 (include)
  zephyr/cmake/app/boilerplate.cmake:243 (include)
  CMakeLists.txt:1 (include)

This commit will improve the error feedback to give a explanation for
what kind of failure has occured and will also dump relevant variables
to ease debugging.

This fixes #7075

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2018-04-19 12:53:43 -07:00
..
app build: use git version and hash for boot banner 2018-04-10 10:57:50 -04:00
compiler cmake: toolchain: Improve error feedback when toolchain is not found 2018-04-19 12:53:43 -07:00
emu sample: net: RPL mesh sample over QEMU 2018-02-20 14:47:14 +02:00
flash cmake: fix 'ninja flash' et al with multiple boards plugged in 2018-02-02 19:04:00 +01:00
reports scripts: fix ram_reports and generate bin file if missing 2018-01-29 05:16:52 +05:30
toolchain cmake: fix set_ifndef() usage patterns 2018-03-23 05:32:44 -04:00
usage cmake: Fix "make usage" regression from the ZEPHYR_BASE change 2018-01-18 10:44:19 -05:00
GetGitRevisionDescription.cmake build: use git version and hash for boot banner 2018-04-10 10:57:50 -04:00
GetGitRevisionDescription.cmake.in build: use git version and hash for boot banner 2018-04-10 10:57:50 -04:00
ccache.cmake
dts.cmake scripts/dts: Make extract_dts_includes generating both files by itself 2018-03-26 14:48:49 -04:00
extensions.cmake cmake: Support UTF-8 characters in Kconfig values 2018-03-21 19:11:19 -04:00
extra_flags.cmake cmake: Fix EXTRA_LDFLAGS feature 2017-12-05 08:39:43 -05:00
fpu-for-gcc-m-cpu.cmake cmake: indicate single precision floating-point for Cortex-M33 2018-02-23 21:42:22 -06:00
gcc-m-cpu.cmake
hex.cmake
host-tools-zephyr.cmake cmake: fix set_ifndef() usage patterns 2018-03-23 05:32:44 -04:00
host-tools.cmake cmake: do not error on missing 'config' 2018-01-16 17:03:48 -05:00
kconfig.cmake cleanup: replace old jira numbers with GH issues 2018-03-26 13:13:04 -04:00
pristine.cmake
toolchain.cmake toolchain: organise toolchain/compiler files 2018-02-13 07:44:45 -08:00
version.cmake cmake: Use path-corrected version of ZEPHYR_BASE 2018-01-11 14:59:03 -05:00