07 Dec, 2019
1 commit
-
Migrate from_env() from pxe.c to nvedit.c as it's not pxe specific.
Signed-off-by: Patrice Chotard
25 Sep, 2019
1 commit
-
Since commit af95f20 ("env: Create a new file for environment functions"),
a new header file exists.So, this commit add a missing header file.
Fixes:
include/env.h:158:1: error: unknown type name ‘ulong’; did you mean ‘long’?
ulong env_get_ulong(const char *name, int base, ulong default_val);
^~~~~
long
include/env.h:158:49: error: unknown type name ‘ulong’; did you mean ‘long’?
ulong env_get_ulong(const char *name, int base, ulong default_val);Signed-off-by: Pierre-Jean Texier
Tested-by: Joris Offouga
Tested-by: Heiko Schocher
Acked-by: Joe Hershberger
12 Aug, 2019
24 commits
-
Add an ENV prefix to these two flags so that it is clear what they relate
to. Also move them to env.h since they are part of the public API. Use an
enum rather than a #define to tie them together.Signed-off-by: Simon Glass
-
These definitions are effectively part of the 'public' API of the
environment implementation since they do not require access to any
internal variables. Move them to the env.h header.Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
This enum is somewhat widely used to determine if the environment is valid
or not. Move it to the common environment header file.Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Move env_reloc() over to the new header file.
Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move env_get_char() over to the new header file.
Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move these functions to the new header file and rename set_default_env()
to env_set_default() so that it has a consistent env_ prefix.Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move these functions to the new header file.
Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move these function to the new header file.
Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move this function to the new header file and rename it so it has an env_
prefix.Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move this function over to the new header file.
Signed-off-by: Simon Glass
-
Move these two functions over to the new header file.
Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move env_get() over to the new header file.
Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move env_set() over to the new header file.
Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move env_get_hex() over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Move env_get_yesno() over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Move env_get_ulong() over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Move env_set_ulong() over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Move env_set_hex() over to the new header file along with env_set_addr()
which uses it.Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Move envmatch() over to the new header file. Also rename it to env_match()
to better line up with other functions.Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Move env_relocate() over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Move env_init() over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Move this function over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Move this function over to the new header file. Also rename it to have an
env_ prefix like the other functions.Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
At present we have environment.h but this file includes all the
environment-related header files as well as internals such as
default_environment.It seems desirable to have a new header to hold the commonly used
environment functions, so that most files can avoid including all of this
unnecessary stuff.Create a new env.h header and move one function over to it.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger
Reviewed-by: Simon Goldschmidt