kernel
Main Zephyr Kernel CMake module.
This module is responsible for creating Zephyr libraries and the Zephyr executable. It creates a CMake project named Zephyr-Kernel and defines properties used while configuring libraries to be built.
Variables
After loading this module, the following global variables are defined:
- ZEPHYR_LIBS
Global list of all Zephyr CMake libraries that should be linked in.
zephyr_library()appends libraries to this list.
- ZEPHYR_INTERFACE_LIBS
Global list of all Zephyr interface libraries that should be linked in.
zephyr_interface_library_named()appends libraries to this list.
- GENERATED_APP_SOURCE_FILES
Source files that are generated after Zephyr has been linked once. May include dev_handles.c etc.
- GENERATED_KERNEL_OBJECT_FILES
Object files that are generated after symbol addresses are fixed. May include mmu tables, etc.
- GENERATED_KERNEL_SOURCE_FILES
Source files that are generated after symbol addresses are fixed. May include isr_tables.c etc.
Targets
- code_data_relocation_target
Custom target for code data relocation.
- app
CMake library containing all the application code. Modified by the entry point ${APPLICATION_SOURCE_DIR}/CMakeLists.txt.
Usage
This module is not intended for direct loading, but should be loaded through
find_package(Zephyr). It won’t load any Zephyr CMake modules by itself.