diff options
| author | Simon Glass <[email protected]> | 2019-08-01 09:46:52 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-08-11 16:43:41 -0400 |
| commit | 7b51b576d6db714e8668a98de67e93651e18123c (patch) | |
| tree | 568a39b82f10fabc191cfe6da0fa6e17c251bd08 /include/env.h | |
| parent | 9fb625ce05539fe6876a59ce1dcadb76b33c6f6e (diff) | |
env: Move env_get() to env.h
Move env_get() over to the new header file.
Acked-by: Joe Hershberger <[email protected]>
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/env.h')
| -rw-r--r-- | include/env.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/env.h b/include/env.h index 6770a6176df..297fd7a071f 100644 --- a/include/env.h +++ b/include/env.h @@ -52,6 +52,18 @@ void env_relocate(void); int env_match(unsigned char *name, int index); /** + * env_get() - Look up the value of an environment variable + * + * In U-Boot proper this can be called before relocation (which is when the + * environment is loaded from storage, i.e. GD_FLG_ENV_READY is 0). In that + * case this function calls env_get_f(). + * + * @varname: Variable to look up + * @return value of variable, or NULL if not found + */ +char *env_get(const char *varname); + +/** * env_get_f() - Look up the value of an environment variable (early) * * This function is called from env_get() if the environment has not been |
