]> git.sur5r.net Git - u-boot/blobdiff - env/env.c
Merge git://git.denx.de/u-boot-cfi-flash
[u-boot] / env / env.c
index d4f5e35b1e0d800f55fd6fe6467b2aa3846059d3..9a89832c1aafc79ba4d59536306a0561e84e2db2 100644 (file)
--- a/env/env.c
+++ b/env/env.c
@@ -88,6 +88,7 @@ static void env_set_inited(enum env_location location)
  *        highest priority
  *
  * This will return the preferred environment for the given priority.
+ * This is overridable by boards if they need to.
  *
  * All implementations are free to use the operation, the priority and
  * any other data relevant to their choice, but must take into account
@@ -98,7 +99,7 @@ static void env_set_inited(enum env_location location)
  * Returns:
  * an enum env_location value on success, a negative error code otherwise
  */
-static enum env_location env_get_location(enum env_operation op, int prio)
+__weak enum env_location env_get_location(enum env_operation op, int prio)
 {
        switch (op) {
        case ENVOP_GET_CHAR: