[U-Boot] [RFC PATCH 08/10] env: Mark env_get_location as weak
Maxime Ripard
maxime.ripard at free-electrons.com
Thu Nov 16 09:22:29 UTC 2017
Allow boards and architectures to override the default environment lookup
code by overriding env_get_location.
Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>
---
env/env.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/env/env.c b/env/env.c
index 6af9f897b0ae..aceb77d4073c 100644
--- a/env/env.c
+++ b/env/env.c
@@ -62,7 +62,7 @@ static enum env_location env_locations[] = {
static enum env_location env_load_location;
-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 ENVO_GET_CHAR:
--
2.14.3
More information about the U-Boot
mailing list