Lines Matching refs:variable

383   # Set the output variable in the parent scope
410 # with a name accessible through the variable ZEPHYR_CURRENT_LIBRARY.
412 # The variable ZEPHYR_CURRENT_LIBRARY should seldom be needed since
938 # variable `ACTIVE_BOARD_REVISION` with the selected revision.
1159 key_value # Output variable
1539 # Writes 1 to the output variable 'ok' if
1561 # pow2round(<variable>)
1611 # zephyr_build_string(<out-variable>
1613 # [SHORT <out-variable>]
1618 # zephyr_build_string(<out-variable>
1623 # <out-variable>: Output variable where the build string will be returned.
1624 # SHORT <out-variable>: Output variable where the shortened build string will be returned.
1875 # CMake namespace. List all created variable names in the 'keys'
1876 # output variable if present.
1880 # <keys> : output variable which will be populated with variable
1912 # If the provided value is n, then the corresponding CMake variable or
1924 # Otherwise, the variable/property will be set to the provided value.
2139 function(set_ifndef variable value)
2140 if(NOT ${variable})
2141 set(${variable} ${value} ${ARGN} PARENT_SCOPE)
2296 # Writes 1 to the output variable 'ok' for the language 'lang' if
2625 # variable
2649 # APPLICATION_ROOT <path>: Check all paths in provided variable, and convert
2727 # The cached variable is relative path, i.e. provided by `-D<var>` or
2728 # `set(<var> CACHE)`, so let's update current scope variable to absolute
2741 # Let's check if anyone uses relative path as scoped variable, and fail
2745 "Relative path encountered in scoped variable: ${ZFILE_APPLICATION_ROOT}, value=${path}\n \
2988 # `_<suffix>` extension to them and if so, updates the supplied variable/list with the new
2995 # Returns an updated variable of absolute path(s)
3002 # If the file suffix variable is not known then there is nothing to do, return early
3027 # Update supplied variable if it differs
3067 message(FATAL_ERROR "Function zephyr_string() called without a return variable")
3095 # [OUTPUT_VARIABLE <output variable])
3113 # an alternative variable to store the result
3145 # zephyr_var_name(<variable> <scope> <out>)
3147 # Internal function for construction of scoped variable name expansion string.
3149 # reading a current scope FOO variable is identical to expand ${FOO}.
3150 # reading a cache scope FOO variable is identical to expand $CACHE{FOO}.
3154 function(zephyr_var_name variable scope out)
3156 if(DEFINED ${scope}{${variable}})
3157 set(${out} "$${scope}{${variable}}" PARENT_SCOPE)
3162 if(DEFINED ${scope}_${variable})
3163 set(${out} "${${scope}_${variable}}" PARENT_SCOPE)
3171 # zephyr_get(<variable> [MERGE [REVERSE]] [SYSBUILD [LOCAL|GLOBAL]] [VAR <var1> ...])
3173 # Return the value of <variable> as local scoped variable of same name. If MERGE
3179 # VAR can be used either to store the result in a variable with a different
3192 # - BOARD is considered a global sysbuild cache variable
3193 # - blinky_BOARD is considered a local sysbuild cache variable only for the
3206 function(zephyr_get variable)
3224 set(GET_VAR_VAR ${variable})
3256 set(${variable} "")
3267 list(APPEND ${variable} ${scope_value})
3269 set(${variable} ${scope_value} PARENT_SCOPE)
3272 # Set the environment variable in CMake cache, so that a build
3274 # environment variable still being available / have identical value.
3275 set(${var} $ENV{${var}} CACHE INTERNAL "Cached environment variable ${var}")
3281 # Variable exists as current scoped variable, defined in a CMakeLists.txt
3284 message(WARNING "environment variable '${var}' is hiding local "
3285 "variable of same name.\n"
3299 list(REVERSE ${variable})
3300 list(REMOVE_DUPLICATES ${variable})
3301 list(REVERSE ${variable})
3303 list(REMOVE_DUPLICATES ${variable})
3305 set(${variable} ${${variable}} PARENT_SCOPE)
3307 endfunction(zephyr_get variable)
3350 # <scope> : Scope for the variable look up
3368 # zephyr_set(<variable> <value> SCOPE <scope> [APPEND])
3370 # Zephyr extension of CMake set which allows a variable to be set in a specific
3372 # handling when a variable it set in multiple scopes.
3374 # <variable> : Name of variable
3375 # <value> : Value of variable, multiple values will create a list.
3377 # SCOPE <scope>: Name of scope for the variable
3378 # APPEND : Append values to the already existing variable in <scope>
3380 function(zephyr_set variable)
3395 ${SET_VAR_SCOPE}_scope:${variable} ${SET_VAR_UNPARSED_ARGUMENTS}
3400 # zephyr_check_cache(<variable> [REQUIRED])
3402 # Check the current CMake cache for <variable> and warn the user if the value
3410 # variable: Name of <variable> to check and set, for example BOARD.
3411 # REQUIRED: Optional flag. If specified, then an unset <variable> will be
3413 # WATCH: Optional flag. If specified, watch the variable and print a warning if
3414 # the variable is later being changed.
3417 # <variable> can be set by 3 sources.
3418 # - Using CMake argument, -D<variable>
3419 # - Using an environment variable
3426 # cache as CACHED_<variable>. This allows the Zephyr build system to detect
3427 # when a user reconfigures a sticky variable.
3430 # E.g. always specifies -D<variable>= on the command line,
3431 # always has an environment <variable> set, or always has a set(<variable> foo)
3434 # The selected <variable> can be accessed through the variable '<variable>' in
3437 # If the user tries to change <variable> to a new value, then a warning will
3438 # be printed, and the previously cached value (CACHED_<variable>) will be
3442 # <variable> the build directory must be cleaned.
3444 function(zephyr_check_cache variable)
3446 string(TOLOWER ${variable} variable_text)
3449 get_property(cached_value CACHE ${variable} PROPERTY VALUE)
3452 # then CACHED_${variable} is set. The CACHED_${variable} setting takes
3457 # If user uses -D<variable>=<new_value>, then cli_argument will hold the new
3460 if(cli_argument STREQUAL CACHED_${variable})
3461 # The is no changes to the <variable> value.
3465 set(app_cmake_lists ${${variable}})
3466 if(cached_value STREQUAL ${variable})
3467 # The app build scripts did not set a default, The variable we are
3472 if(DEFINED CACHED_${variable})
3473 # Warn the user if it looks like he is trying to change the variable
3476 …if(NOT ((CACHED_${variable} STREQUAL cli_argument) OR (${variable}_DEPRECATED STREQUAL cli_argumen…
3479 "Current value=\"${CACHED_${variable}}\", "
3484 if(CACHED_${variable})
3485 set(${variable} ${CACHED_${variable}} PARENT_SCOPE)
3486 set(${variable} ${CACHED_${variable}})
3488 set(${variable} ${CACHED_${variable}} CACHE STRING "Selected ${variable_text}" FORCE)
3490 unset(${variable} PARENT_SCOPE)
3491 unset(${variable} CACHE)
3494 zephyr_get(${variable})
3497 if(${CACHE_VAR_REQUIRED} AND NOT DEFINED ${variable})
3498 message(FATAL_ERROR "${variable} is not being defined on the CMake command-line,"
3503 if(DEFINED ${variable})
3504 # Store the specified variable in parent scope and the cache
3505 set(${variable} ${${variable}} PARENT_SCOPE)
3506 set(${variable} ${${variable}} CACHE STRING "Selected ${variable_text}")
3508 set(CACHED_${variable} ${${variable}} CACHE STRING "Selected ${variable_text}")
3511 # The variable is now set to its final value.
3512 zephyr_boilerplate_watch(${variable})
3514 endfunction(zephyr_check_cache variable)
3520 # Inform the build system that SOME_BOILERPLATE_VAR, a variable
3525 # if the variable is set after it returns.
3526 function(zephyr_boilerplate_watch variable)
3527 variable_watch(${variable} zephyr_variable_set_too_late)
3530 function(zephyr_variable_set_too_late variable access value current_list_file)
3538 * CMake variable ${variable} set to \"${value}\" in:
3543 * Hint: ${variable} must be set before calling find_package(Zephyr ...).
3634 # RESULT <out-variable>)
3646 # RESULT: Output variable, where the topologically sorted list of target
3829 # <var> : Return variable where the node path will be stored
3870 # # The variable 'path' will be left undefined for a nonexistent
3875 # variable will be left undefined if the alias does not exist.
3877 # <var> : Return variable where the node path will be stored
3922 # <var> : Return variable where the check result will be returned
3966 # <var> : Return variable where the check result will be returned
4049 # <var> : Return variable where the property value will be stored
4110 # <var> : Return variable where the property value will be stored
4168 # <var> : Return variable where the property value will be stored
4212 # <var> : Return variable where the address value will be stored
4272 # <var> : Return variable where the size value will be stored
4351 # <var> : Return variable
4384 # variable will be left undefined if the chosen node does not exist.
4386 # <var> : Return variable where the node path will be stored
4414 # variable 'var'. This resolves aliases, if any. Child nodes may be
4468 # Failed search; ensure return variable is undefined.
5865 # The resulting generator expression will be stored in the variable <outvar>.