287 files changed, 177798 insertions, 0 deletions
diff --git a/recovery/ubootenv/uboot_env.h b/recovery/ubootenv/uboot_env.h new file mode 100644 index 0000000..effda27 --- a/dev/null +++ b/recovery/ubootenv/uboot_env.h @@ -0,0 +1,24 @@ +#ifndef BOOTLOADER_ENV_H_ +#define BOOTLOADER_ENV_H_ +/* +* set bootloader environment variable +* 0: success, <0: fail +*/ +extern int set_bootloader_env(const char* name, const char* value); + +/* +* get bootloader environment variable +* NULL: init failed or get env value is NULL +* NONE NULL: env value +*/ +extern char *get_bootloader_env(const char * name); + + + +extern int set_env_optarg(const char * optarg); + + + +extern int get_env_optarg(const char * optarg); + +#endif
\ No newline at end of file |