Lines Matching full:image
6 # load_cache(IMAGE <image> BINARY_DIR <dir>)
12 # the name given as value to the IMAGE argument.
14 # IMAGE: image name identifying the cache for later sysbuild_get() lookup calls.
17 set(single_args IMAGE BINARY_DIR)
47 # sysbuild_get(<variable> IMAGE <image> [VAR <image-variable>] <KCONFIG|CACHE>)
50 # identified by image.
58 # sysbuild_get(PROJECT_NAME IMAGE my_sample CACHE)
62 # sysbuild_get(my_sample_PROJECT_NAME IMAGE my_sample VAR PROJECT_NAME CACHE)
66 # sysbuild_get(my_sample_CONFIG_FOO IMAGE my_sample VAR CONFIG_FOO KCONFIG)
72 # IMAGE: image name identifying the cache to use for variable lookup.
77 cmake_parse_arguments(GET_VAR "CACHE;KCONFIG" "IMAGE;VAR" "" ${ARGN})
80 message(FATAL_ERROR "sysbuild_get(...) requires IMAGE.")
86 "Please use sysbuild_get(<variable> ... VAR <image-variable>) "
160 # Only set image specific board if provided.
162 # unless <image>_BOARD is defined.
210 # except for multi image build flags.
263 # User defined `-D<image>_CONF_FILE=<file.conf>` takes precedence over anything else.
272 # The contents of these are appended to the image existing configuration
396 # Only set image specific board if provided.
398 # unless <image>_BOARD is defined.
441 # The image output files are added as target properties on the image target as:
449 # the property is only set if the image is configured to generate the output
519 load_cache(IMAGE ${ZCMAKE_APPLICATION} BINARY_DIR ${BINARY_DIR})
523 # depends directly on the BYPRODUCT instead of depending on the image target.
533 # sysbuild_module_call(<hook> MODULES <modules> IMAGES <images> [IMAGE <image>] [EXTRA_ARGS <argu…
537 # `IMAGES` contains the list of images to the hook, if `IMAGE` is passed, this will be provided
546 # image
548 # each image
552 # For the `PRE_IMAGE_CMAKE` and `POST_IMAGE_CMAKE` hooks, `IMAGE` is provided
556 set(multi_args "MODULES;IMAGES;IMAGE;EXTRA_ARGS")
568 set(IMAGE_ARG IMAGE ${SMC_IMAGE})
571 "sysbuild_module_call(PRE_IMAGE_CMAKE ...) missing required IMAGE option")
574 "sysbuild_module_call(POST_IMAGE_CMAKE ...) missing required IMAGE option")
652 function(set_config_bool image setting value)
654 set_property(TARGET ${image} APPEND_STRING PROPERTY CONFIG "${setting}=y\n")
656 set_property(TARGET ${image} APPEND_STRING PROPERTY CONFIG "${setting}=n\n")
660 function(set_config_string image setting value)
661 set_property(TARGET ${image} APPEND_STRING PROPERTY CONFIG "${setting}=\"${value}\"\n")
664 function(set_config_int image setting value)
665 set_property(TARGET ${image} APPEND_STRING PROPERTY CONFIG "${setting}=${value}\n")
674 # After exiting <source_dir>, this function will take every image added so far,
700 foreach(image ${added_images})
701 ExternalProject_Get_property(${image} SOURCE_DIR)
708 # sysbuild_add_dependencies(<CONFIGURE | FLASH> <image> [<image-dependency> ...])
710 # This function makes an image depend on other images in the configuration or
711 # flashing order. Each image named "<image-dependency>" will be ordered before
712 # the image named "<image>".
719 function(sysbuild_add_dependencies dependency_type image)
729 if(NOT TARGET ${image})
731 "${image} does not exist. Remember to call "
732 "ExternalZephyrProject_Add(APPLICATION ${image} ...) first."
736 get_target_property(image_is_build_only ${image} BUILD_ONLY)
740 "BUILD_ONLY image ${image}."
745 set_property(TARGET ${image} APPEND PROPERTY ${property_name} ${ARGN})