This commit refactors sysbuild entry code by creating a CMake sysbuild module for image processing and place sysbuild entry code in a <app>/sysbuild/CMakeLists.txt file. A template/CMakeLists.txt file will be use as template for applications which doesn't provide their own entry file. An application may create a sysbuild/CMakeLists.txt file. The sysbuild/CMakeLists.txt file is similar in nature to the toplevel CMakeLists.txt file but intended to used by sysbuild. This allows application developers to adjust how an application is built with sysbuild. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
12 lines
435 B
CMake
12 lines
435 B
CMake
# Copyright (c) 2024 Nordic Semiconductor
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Generic sysbuild CMakeLists.txt file used as sysbuild entry point for multi-image builds.
|
|
#
|
|
# Applications which requires custom handling when built using sysbuild may copy this
|
|
# file to the folder `<app-dir>/sysbuild` and use as a template and extend as needed.
|
|
|
|
find_package(Sysbuild REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
|
|
project(sysbuild LANGUAGES)
|