zephyr/cmake/modules
Kesavan Yogeswaran d5fc087690 cmake: Fix warning if a Zephyr library is created in app-mode
zephyr_append_cmake_library attempts to warn the user if a user calls it
to create a Zephyr library while the build is in application mode. At
that stage of the build, the list of Zephyr libraries has already been
processed so the function is effectively a no-op.

This heuristic used to determine if the build was in kernel mode or
application mode checked for the presence of the zephyr_prebuilt target.
This check was broken by a previous commit that renamed this target.

This commit fixes the heuristic by checking for the zephyr_pre0 target.

This was tested by calling zephyr_append_cmake_library from some
application build files, building the application, and seeing the
warning only for the call I added. No warnings were printed for any
Zephyr internal libraries.

Link: https://github.com/zephyrproject-rtos/zephyr/pull/35887
Link: https://github.com/zephyrproject-rtos/zephyr/pull/39959

Signed-off-by: Kesavan Yogeswaran <hikes@google.com>
2025-06-09 15:02:01 -07:00
..
arch.cmake
basic_settings.cmake
boards.cmake
ccache.cmake
configuration_files.cmake
doc.cmake
dts.cmake cmake: modules: Add zephyr_dt_import 2025-05-22 13:44:18 +02:00
extensions.cmake cmake: Fix warning if a Zephyr library is created in app-mode 2025-06-09 15:02:01 -07:00
Findarmclang.cmake
FindBabbleSim.cmake
FindDeprecated.cmake
FindDtc.cmake
FindGnuLd.cmake
FindHostTools.cmake
FindLlvmLld.cmake
FindoneApi.cmake
FindScaTools.cmake
FindTargetTools.cmake
FindThreads.cmake
FindZephyr-sdk.cmake
generated_file_directories.cmake
git.cmake
hwm_v2.cmake
kconfig.cmake cmake: kconfig: auto-generate boolean board revision option 2025-05-16 16:11:48 +02:00
kernel.cmake CMake: Add support for .mot binary file format 2025-05-02 09:18:16 +02:00
pre_dt.cmake dts: Move vendor-specific dtsi to dedicated folder 2025-04-29 13:00:03 +02:00
python.cmake
root.cmake
shields.cmake shields: scripts: cmake: use list_shields.py in shields.cmake 2025-05-23 17:19:58 +02:00
snippets.cmake
soc.cmake
unittest.cmake cmake: clean up gen_kobject_list.py invocations 2025-05-07 15:10:05 +02:00
user_cache.cmake
version.cmake
west.cmake
yaml.cmake yaml: save intermediate files in the build directory 2025-05-08 19:46:18 +02:00
zephyr_default.cmake
zephyr_module.cmake cmake: fix Zephyr module ext order 2025-04-03 13:16:56 +02:00