env: Move env_relocate() to env.h
Move env_relocate() over to the new header file. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
4bfd1f5d62
commit
3f989e7b0e
@ -18,6 +18,7 @@
|
||||
#include <command.h>
|
||||
#include <console.h>
|
||||
#include <dm.h>
|
||||
#include <env.h>
|
||||
#include <environment.h>
|
||||
#include <fdtdec.h>
|
||||
#include <ide.h>
|
||||
|
1
env/common.c
vendored
1
env/common.c
vendored
@ -9,6 +9,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <env.h>
|
||||
#include <environment.h>
|
||||
#include <linux/stddef.h>
|
||||
#include <search.h>
|
||||
|
@ -146,7 +146,6 @@ int do_fat_fsload(cmd_tbl_t *, int, int, char * const []);
|
||||
int do_ext2load(cmd_tbl_t *, int, int, char * const []);
|
||||
|
||||
/* common/cmd_nvedit.c */
|
||||
void env_relocate (void);
|
||||
int envmatch (uchar *, int);
|
||||
|
||||
/**
|
||||
|
@ -31,6 +31,14 @@ int env_get_id(void);
|
||||
*/
|
||||
int env_init(void);
|
||||
|
||||
/**
|
||||
* env_relocate() - Set up the post-relocation environment
|
||||
*
|
||||
* This loads the environment into RAM so that it can be modified. This is
|
||||
* called after relocation, before the environment is used
|
||||
*/
|
||||
void env_relocate(void);
|
||||
|
||||
/**
|
||||
* env_get_f() - Look up the value of an environment variable (early)
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user