zephyr/cmake
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
..
app
bintools CMake: Add support for .mot binary file format 2025-05-02 09:18:16 +02:00
compiler cmake: compiler: Remove -fshort-enums 2025-06-06 11:52:22 +02:00
emu cmake/emu: Use SIMICS_PROJECT environment variable as working dir 2025-05-20 12:47:25 +02:00
flash CMake: Add support for .mot binary file format 2025-05-02 09:18:16 +02:00
ide
linker iar: linker: Do --whole_archive linking 2025-06-09 14:37:05 -07:00
linker_script linker generator: Handle .last_section 2025-05-26 14:17:21 +02:00
makefile_exports
modules cmake: Fix warning if a Zephyr library is created in app-mode 2025-06-09 15:02:01 -07:00
reports cmake: reports: Fix file prefix for tfm/bl2 2025-02-24 15:36:45 +00:00
sca sca: llvm: add support for clang static analyzer 2025-05-23 17:40:36 -04:00
toolchain iar: toolchain: Implement IAR static init routine 2025-05-12 19:18:56 +02:00
usage
util
cfb.cmake
extra_flags.cmake
gcc-m-cpu.cmake arch: arm: Add Cortex-A7 support 2025-04-04 09:35:03 +02:00
gcc-m-fpu.cmake arch: arm: Add Cortex-A7 support 2025-04-04 09:35:03 +02:00
gen_version_h.cmake
kobj.cmake cmake: fix syscall dependencies 2025-05-13 16:23:54 +02:00
llext-edk.cmake llext-edk: fix BOARD_TARGET variable generation to be Zephyr-compatible 2025-04-02 19:02:45 +02:00
mcuboot.cmake mcuboot: Kconfig options for single app slot RAM loading mode 2025-04-08 16:12:33 +02:00
package_helper.cmake cmake: move script mode handling from package helper to extensions.cmake 2024-10-08 17:00:30 +02:00
pristine.cmake
target_toolchain_flags.cmake cmake: source dedicated linker library properties for native builds 2024-11-16 15:28:20 -05:00
verify-toolchain.cmake
vif.cmake
yaml-filter.cmake cmake: yaml: switch to yaml for intermediate file 2025-04-10 10:11:47 +02:00