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
959 # variable `ACTIVE_BOARD_REVISION` with the selected revision.
1180 key_value # Output variable
1564 # Writes 1 to the output variable 'ok' if
1586 # pow2round(<variable>)
1636 # zephyr_build_string(<out-variable>
1638 # [SHORT <out-variable>]
1643 # zephyr_build_string(<out-variable>
1648 # <out-variable>: Output variable where the build string will be returned.
1649 # SHORT <out-variable>: Output variable where the shortened build string will be returned.
1892 # CMake namespace. List all created variable names in the 'keys'
1893 # output variable if present.
1897 # <keys> : output variable which will be populated with variable
1929 # If the provided value is n, then the corresponding CMake variable or
1941 # Otherwise, the variable/property will be set to the provided value.
2156 function(set_ifndef variable value)
2157 if(NOT ${variable})
2158 set(${variable} ${value} ${ARGN} PARENT_SCOPE)
2313 # Writes 1 to the output variable 'ok' for the language 'lang' if
2642 # variable
2666 # APPLICATION_ROOT <path>: Check all paths in provided variable, and convert
2744 # The cached variable is relative path, i.e. provided by `-D<var>` or
2745 # `set(<var> CACHE)`, so let's update current scope variable to absolute
2758 # Let's check if anyone uses relative path as scoped variable, and fail
2762 "Relative path encountered in scoped variable: ${ZFILE_APPLICATION_ROOT}, value=${path}\n \
3005 # `_<suffix>` extension to them and if so, updates the supplied variable/list with the new
3012 # Returns an updated variable of absolute path(s)
3019 # If the file suffix variable is not known then there is nothing to do, return early
3044 # Update supplied variable if it differs
3084 message(FATAL_ERROR "Function zephyr_string() called without a return variable")
3111 # [OUTPUT_VARIABLE <output variable])
3129 # an alternative variable to store the result
3161 # zephyr_var_name(<variable> <scope> <out>)
3163 # Internal function for construction of scoped variable name expansion string.
3165 # reading a current scope FOO variable is identical to expand ${FOO}.
3166 # reading a cache scope FOO variable is identical to expand $CACHE{FOO}.
3170 function(zephyr_var_name variable scope out)
3172 if(DEFINED ${scope}{${variable}})
3173 set(${out} "$${scope}{${variable}}" PARENT_SCOPE)
3178 if(DEFINED ${scope}_${variable})
3179 set(${out} "${${scope}_${variable}}" PARENT_SCOPE)
3187 # zephyr_get(<variable> [MERGE [REVERSE]] [SYSBUILD [LOCAL|GLOBAL]] [VAR <var1> ...])
3189 # Return the value of <variable> as local scoped variable of same name. If MERGE
3195 # VAR can be used either to store the result in a variable with a different
3208 # - BOARD is considered a global sysbuild cache variable
3209 # - blinky_BOARD is considered a local sysbuild cache variable only for the
3222 function(zephyr_get variable)
3240 set(GET_VAR_VAR ${variable})
3272 set(${variable} "")
3283 list(APPEND ${variable} ${scope_value})
3285 set(${variable} ${scope_value} PARENT_SCOPE)
3288 # Set the environment variable in CMake cache, so that a build
3290 # environment variable still being available / have identical value.
3291 set(${var} $ENV{${var}} CACHE INTERNAL "Cached environment variable ${var}")
3297 # Variable exists as current scoped variable, defined in a CMakeLists.txt
3300 message(WARNING "environment variable '${var}' is hiding local "
3301 "variable of same name.\n"
3315 list(REVERSE ${variable})
3316 list(REMOVE_DUPLICATES ${variable})
3317 list(REVERSE ${variable})
3319 list(REMOVE_DUPLICATES ${variable})
3321 set(${variable} ${${variable}} PARENT_SCOPE)
3323 endfunction(zephyr_get variable)
3366 # <scope> : Scope for the variable look up
3384 # zephyr_set(<variable> <value> SCOPE <scope> [APPEND])
3386 # Zephyr extension of CMake set which allows a variable to be set in a specific
3388 # handling when a variable it set in multiple scopes.
3390 # <variable> : Name of variable
3391 # <value> : Value of variable, multiple values will create a list.
3393 # SCOPE <scope>: Name of scope for the variable
3394 # APPEND : Append values to the already existing variable in <scope>
3396 function(zephyr_set variable)
3411 ${SET_VAR_SCOPE}_scope:${variable} ${SET_VAR_UNPARSED_ARGUMENTS}
3416 # zephyr_check_cache(<variable> [REQUIRED])
3418 # Check the current CMake cache for <variable> and warn the user if the value
3426 # variable: Name of <variable> to check and set, for example BOARD.
3427 # REQUIRED: Optional flag. If specified, then an unset <variable> will be
3429 # WATCH: Optional flag. If specified, watch the variable and print a warning if
3430 # the variable is later being changed.
3433 # <variable> can be set by 3 sources.
3434 # - Using CMake argument, -D<variable>
3435 # - Using an environment variable
3442 # cache as CACHED_<variable>. This allows the Zephyr build system to detect
3443 # when a user reconfigures a sticky variable.
3446 # E.g. always specifies -D<variable>= on the command line,
3447 # always has an environment <variable> set, or always has a set(<variable> foo)
3450 # The selected <variable> can be accessed through the variable '<variable>' in
3453 # If the user tries to change <variable> to a new value, then a warning will
3454 # be printed, and the previously cached value (CACHED_<variable>) will be
3458 # <variable> the build directory must be cleaned.
3460 function(zephyr_check_cache variable)
3462 string(TOLOWER ${variable} variable_text)
3465 get_property(cached_value CACHE ${variable} PROPERTY VALUE)
3468 # then CACHED_${variable} is set. The CACHED_${variable} setting takes
3473 # If user uses -D<variable>=<new_value>, then cli_argument will hold the new
3476 if(cli_argument STREQUAL CACHED_${variable})
3477 # The is no changes to the <variable> value.
3481 set(app_cmake_lists ${${variable}})
3482 if(cached_value STREQUAL ${variable})
3483 # The app build scripts did not set a default, The variable we are
3488 if(DEFINED CACHED_${variable})
3489 # Warn the user if it looks like he is trying to change the variable
3492 …if(NOT ((CACHED_${variable} STREQUAL cli_argument) OR (${variable}_DEPRECATED STREQUAL cli_argumen…
3495 "Current value=\"${CACHED_${variable}}\", "
3500 if(CACHED_${variable})
3501 set(${variable} ${CACHED_${variable}} PARENT_SCOPE)
3502 set(${variable} ${CACHED_${variable}})
3504 set(${variable} ${CACHED_${variable}} CACHE STRING "Selected ${variable_text}" FORCE)
3506 unset(${variable} PARENT_SCOPE)
3507 unset(${variable} CACHE)
3510 zephyr_get(${variable})
3513 if(${CACHE_VAR_REQUIRED} AND NOT DEFINED ${variable})
3514 message(FATAL_ERROR "${variable} is not being defined on the CMake command-line,"
3519 if(DEFINED ${variable})
3520 # Store the specified variable in parent scope and the cache
3521 set(${variable} ${${variable}} PARENT_SCOPE)
3522 set(${variable} ${${variable}} CACHE STRING "Selected ${variable_text}")
3524 set(CACHED_${variable} ${${variable}} CACHE STRING "Selected ${variable_text}")
3527 # The variable is now set to its final value.
3528 zephyr_boilerplate_watch(${variable})
3530 endfunction(zephyr_check_cache variable)
3536 # Inform the build system that SOME_BOILERPLATE_VAR, a variable
3541 # if the variable is set after it returns.
3542 function(zephyr_boilerplate_watch variable)
3543 variable_watch(${variable} zephyr_variable_set_too_late)
3546 function(zephyr_variable_set_too_late variable access value current_list_file)
3554 * CMake variable ${variable} set to \"${value}\" in:
3559 * Hint: ${variable} must be set before calling find_package(Zephyr ...).
3650 # RESULT <out-variable>)
3662 # RESULT: Output variable, where the topologically sorted list of target
3849 # <var> : Return variable where the node path will be stored
3894 # # The variable 'path' will be left undefined for a nonexistent
3899 # variable will be left undefined if the alias does not exist.
3901 # <var> : Return variable where the node path will be stored
3950 # <var> : Return variable where the check result will be returned
3998 # <var> : Return variable where the check result will be returned
4085 # <var> : Return variable where the property value will be stored
4149 # <var> : Return variable where the property value will be stored
4210 # <var> : Return variable where the property value will be stored
4258 # <var> : Return variable where the address value will be stored
4322 # <var> : Return variable where the size value will be stored
4394 # <var> : Return variable
4431 # variable will be left undefined if the chosen node does not exist.
4433 # <var> : Return variable where the node path will be stored
4464 # Internal helper. Check that the CMake target named by variable 'var' is valid
4484 # variable 'var'. This resolves aliases, if any. Child nodes may be
4538 # Failed search; ensure return variable is undefined.
5511 # @variable@ access to all the CONFIG_FOO settings
5543 # If VALUE isn't set, the current value of the variable is used
5546 # If VALUE isn't set, the current value of the variable is used
5550 # PASS [NOT] <pass>: Rule for which PASSES to include variable see
5557 message(FATAL_ERROR "zephyr_linker_include_var(${ARGV0} ...) must have VAR <variable> ")
6105 # The resulting generator expression will be stored in the variable <outvar>.