zephyr/tests/kernel
Torsten Rasmussen 407b49b35c cmake: use find_package to locate Zephyr
Using find_package to locate Zephyr.

Old behavior was to use $ENV{ZEPHYR_BASE} for inclusion of boiler plate
code.

Whenever an automatic run of CMake happend by the build system / IDE
then it was required that ZEPHYR_BASE was defined.
Using ZEPHYR_BASE only to locate the Zephyr package allows CMake to
cache the base variable and thus allowing subsequent invocation even
if ZEPHYR_BASE is not set in the environment.

It also removes the risk of strange build results if a user switchs
between different Zephyr based project folders and forgetting to reset
ZEPHYR_BASE before running ninja / make.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2020-03-27 16:23:46 +01:00
..
common cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
context cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
critical cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
device cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
early_sleep cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
fatal cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
fifo cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
fp_sharing cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
gen_isr_table cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
interrupt cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
lifo cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
mbox cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
mem_heap/mheap_api_concept cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
mem_pool cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
mem_protect cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
mem_slab cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
mp cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
msgq/msgq_api cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
mutex cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
obj_tracing cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
pending cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
pipe cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
poll cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
profiling/profiling_api cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
queue cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
sched cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
semaphore/semaphore cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
sleep cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
smp cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
spinlock cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
stack/stack cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
threads cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
tickless cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
timer cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
workq cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
xip cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00