Lines Matching refs:variable

47 #   sysbuild_get(<variable> IMAGE <image> [VAR <image-variable>] <KCONFIG|CACHE>)
49 # This function will return the variable found in the CMakeCache.txt file
52 # `VAR` is not given, the `<variable>` name provided will be used both for
55 # The result will be returned in `<variable>`.
60 # and return the value in the local variable `PROJECT_NAME`.
64 # and return the value in the local variable `my_sample_PROJECT_NAME`.
68 # and return the value in the local variable `my_sample_CONFIG_FOO`.
70 # <variable>: variable used for returning CMake cache value. Also used as lookup
71 # variable if `VAR` is not provided.
72 # IMAGE: image name identifying the cache to use for variable lookup.
73 # VAR: name of the CMake cache variable name to lookup.
75 # CACHE: Flag indicating that a CMake cache variable should be fetched.
76 function(sysbuild_get variable)
83 if(DEFINED ${variable} AND NOT DEFINED GET_VAR_VAR)
84 message(WARNING "Return variable ${variable} already defined with a value. "
85 "sysbuild_get(${variable} ...) may overwrite existing value. "
86 "Please use sysbuild_get(<variable> ... VAR <image-variable>) "
87 "where <variable> is undefined."
92 set(GET_VAR_VAR ${variable})
106 set(${variable} ${${GET_VAR_IMAGE}_${GET_VAR_VAR}} PARENT_SCOPE)
140 # Required CMake variable to be passed, like CMAKE_BUILD_TYPE must be
583 # sysbuild_cache_set(VAR <variable> [APPEND [REMOVE_DUPLICATES]] <value>)
585 # This function will set the specified value of the sysbuild cache variable in
587 # `VAR` specifies the variable name to set/update.
589 # The result will be returned in `<variable>`.
593 # Will add the item `battery` to the `ATTRIBUTES` variable as a new element
596 # <variable>: Name of variable in CMake cache.
618 # If the variable type is not set, use UNINITIALIZED which will not apply any
743 # sysbuild_images_order(<variable> <CONFIGURE | FLASH> IMAGES <images>)
747 # `<variable>`.
749 function(sysbuild_images_order variable dependency_type)
764 set(${variable} ${sorted} PARENT_SCOPE)