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 license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
linker/ld cmake: Correct PATHS usage 2020-05-20 12:10:20 +02:00
makefile_exports cmake: Add option for exporting build metadata to Make 2020-01-23 15:09:12 -05:00
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 cmake: ninja usage build target 2020-03-27 16:23:46 +01:00
util license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
boards.cmake doc,cmake: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
ccache.cmake license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
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 cmake: extra_flags: fix EXTRA_CPPFLAGS being applied as macros 2019-12-13 13:23:40 -05:00
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 cmake: explain BUILD_VERSION and KERNEL_VERSION_* 2019-05-09 11:52:05 +02:00
hex.cmake license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
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 license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
python.cmake cmake: find python3 on windows when multiarch are installed 2020-05-13 12:13:36 +02:00
target_toolchain.cmake cmake: Toolchain abstraction: Abstraction of binary tools, foundation. 2019-07-31 11:09:35 +02:00
version.cmake cmake: Added possibility to disable the printing of version 2020-03-27 16:23:46 +01:00
zephyr_module.cmake cmake: west: invoke west using same python as rest of build system 2020-07-08 23:23:04 -04:00