2021-11-22 20:55:57 +08:00
|
|
|
# Copyright (c) 2021 Nordic Semiconductor
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
set(domains_yaml "default: ${DEFAULT_IMAGE}")
|
|
|
|
set(domains_yaml "${domains_yaml}\nbuild_dir: ${CMAKE_BINARY_DIR}")
|
|
|
|
set(domains_yaml "${domains_yaml}\ndomains:")
|
|
|
|
foreach(image ${IMAGES})
|
2023-08-07 17:09:49 +08:00
|
|
|
get_target_property(image_is_build_only ${image} BUILD_ONLY)
|
|
|
|
if(image_is_build_only)
|
|
|
|
continue()
|
|
|
|
endif()
|
2021-11-22 20:55:57 +08:00
|
|
|
set(domains_yaml "${domains_yaml}\n - name: ${image}")
|
|
|
|
set(domains_yaml "${domains_yaml}\n build_dir: $<TARGET_PROPERTY:${image},_EP_BINARY_DIR>")
|
|
|
|
endforeach()
|
|
|
|
file(GENERATE OUTPUT ${CMAKE_BINARY_DIR}/domains.yaml CONTENT "${domains_yaml}")
|