]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/common.h
sandbox: config: Enable cros_ec emulation and related items
[karo-tx-uboot.git] / include / common.h
index 090fcde5d0e0474e977f778d1463386be8c58a00..5c9bd08f45f21dda5a14782c34773f8d319dfc80 100644 (file)
@@ -314,6 +314,7 @@ static inline int print_cpuinfo(void)
 }
 #endif
 int update_flash_size(int flash_size);
+int arch_early_init_r(void);
 
 /**
  * Show the DRAM size in a board-specific way
@@ -360,6 +361,11 @@ int do_ext2load(cmd_tbl_t *, int, int, char * const []);
 int    env_init     (void);
 void   env_relocate (void);
 int    envmatch     (uchar *, int);
+
+/* Avoid unfortunate conflict with libc's getenv() */
+#ifdef CONFIG_SANDBOX
+#define getenv uboot_getenv
+#endif
 char   *getenv      (const char *);
 int    getenv_f     (const char *name, char *buf, unsigned len);
 ulong getenv_ulong(const char *name, int base, ulong default_val);