Skip to content
Snippets Groups Projects
Commit 340b0e3b authored by Michal Simek's avatar Michal Simek
Browse files

env: Setup GD_FLG_ENV_DEFAULT flag when default environment are used


Setup flag when default environment are used to be able to
rewrite default distro boot variables based on SoC boot mode.

Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Reviewed-by: default avatarAlexander Graf <agraf@suse.de>
parent 1a6a6e9a
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,7 @@ void set_default_env(const char *s) ...@@ -123,6 +123,7 @@ void set_default_env(const char *s)
error("Environment import failed: errno = %d\n", errno); error("Environment import failed: errno = %d\n", errno);
gd->flags |= GD_FLG_ENV_READY; gd->flags |= GD_FLG_ENV_READY;
gd->flags |= GD_FLG_ENV_DEFAULT;
} }
......
...@@ -141,5 +141,6 @@ typedef struct global_data { ...@@ -141,5 +141,6 @@ typedef struct global_data {
#define GD_FLG_SPL_INIT 0x00400 /* spl_init() has been called */ #define GD_FLG_SPL_INIT 0x00400 /* spl_init() has been called */
#define GD_FLG_SKIP_RELOC 0x00800 /* Don't relocate */ #define GD_FLG_SKIP_RELOC 0x00800 /* Don't relocate */
#define GD_FLG_RECORD 0x01000 /* Record console */ #define GD_FLG_RECORD 0x01000 /* Record console */
#define GD_FLG_ENV_DEFAULT 0x02000 /* Default variable flag */
#endif /* __ASM_GENERIC_GBL_DATA_H */ #endif /* __ASM_GENERIC_GBL_DATA_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment