zephyr/cmake
Martí Bolívar b08309e992 cmake: fix kconfig targets
Commit 269f350487 introduced a new
mechanism for loading the edtlib.EDT representation of the devicetree
from kconfigfunctions.py.

While this works for running kconfig.py from kconfig.cmake using
execute_process(), it doesn't work when kconfigfunctions.py is loaded
by the menuconfig target or any other Kconfig targets that use
add_custom_target().

The reason why is that these targets' environments do not have the
location of the EDT pickle file available. This is unlike kconfig.py,
which executes using the same environment as cmake itself, where
edt.pickle's location is already available in the environment.

Fix that by adding EDT_PICKLE to the environment for menuconfig and
friends.

Reported-by: Simon Guinot <simon.guinot@seagate.com>
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-07-10 11:26:11 +02:00
..
app cmake: make find_package(ZephyrUnittest...) REQUIRED 2020-06-12 11:10:23 +02:00
bintools cmake: Correct PATHS usage 2020-05-20 12:10:20 +02:00
compiler cmake: Correct PATHS usage 2020-05-20 12:10:20 +02:00
emu boards: centralize QEMU icount management 2020-06-24 20:28:36 -04:00
flash cmake: west: west flash dependencies in sync with CMake flash target 2020-07-01 07:58:10 -04:00
ide
linker/ld cmake: Correct PATHS usage 2020-05-20 12:10:20 +02:00
makefile_exports
reports build: reports: add pahole target 2020-07-09 06:24:00 -04:00
toolchain cmake: fix usage of Zephyr SDK tools with 3rd party toolchains 2020-05-19 17:12:11 +02:00
usage
util
boards.cmake doc,cmake: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
ccache.cmake
cfb.cmake cmake: using ${ZEPHYR_BASE} instead of $ENV{ZEPHYR_BASE} 2020-03-27 16:23:46 +01:00
dts.cmake dts: marshal the EDT object for later use 2020-07-08 14:02:44 -05:00
extensions.cmake cmake, samples, tests: Use semi-accurate project names 2020-06-09 08:18:29 -04:00
extra_flags.cmake
gcc-m-cpu.cmake arch: arm: aarch64: Add Cortex-A72 config 2020-05-08 10:46:23 +02:00
generic_toolchain.cmake cmake: Zephyr sdk package handling 2020-05-08 17:15:55 +02:00
git.cmake
hex.cmake
host-tools.cmake cmake: fix the build on windows 2020-07-09 18:13:44 -04:00
kconfig.cmake cmake: fix kconfig targets 2020-07-10 11:26:11 +02:00
kobj.cmake cmake: using ${ZEPHYR_BASE} instead of $ENV{ZEPHYR_BASE} 2020-03-27 16:23:46 +01:00
pristine.cmake
python.cmake cmake: find python3 on windows when multiarch are installed 2020-05-13 12:13:36 +02:00
target_toolchain.cmake
version.cmake
zephyr_module.cmake cmake: west: invoke west using same python as rest of build system 2020-07-08 23:23:04 -04:00