]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
env: Move env_reloc() to env.h
authorSimon Glass <sjg@chromium.org>
Thu, 1 Aug 2019 15:47:02 +0000 (09:47 -0600)
committerTom Rini <trini@konsulko.com>
Sun, 11 Aug 2019 20:43:41 +0000 (16:43 -0400)
Move env_reloc() over to the new header file.

Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
include/env.h
include/environment.h

index 42d8bcfa5052623c1b8e957be06ccb36b73579fa..727f58528f9d3f3d4b9f9d01cbfbcbcd49b1098b 100644 (file)
@@ -278,4 +278,11 @@ void env_set_default(const char *s, int flags);
  */
 int env_get_char(int index);
 
+/**
+ * env_reloc() - Relocate the 'env' sub-commands
+ *
+ * This is used for those unfortunate archs with crappy toolchains
+ */
+void env_reloc(void);
+
 #endif
index ea45b57628278fd12f56fbde0369e11cd53bad21..d23b92833e45277ba3276b10d3fb7bf33576c42d 100644 (file)
@@ -158,10 +158,6 @@ extern env_t environment;
 
 extern const unsigned char default_environment[];
 
-#if defined(CONFIG_NEEDS_MANUAL_RELOC)
-extern void env_reloc(void);
-#endif
-
 #ifndef DO_DEPS_ONLY
 
 #include <env_attr.h>