diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2018-01-23 21:17:02 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-27 09:23:22 -0500 |
commit | 40c08a68b9acec6ef5a029708834c5a229bde421 (patch) | |
tree | d26c41855e65c07d9510f9e2e8200594a965510a /env/env.c | |
parent | fb69464eae1ec5aed2ee0e3a9e5533a31ad38bac (diff) | |
download | u-boot-40c08a68b9acec6ef5a029708834c5a229bde421.tar.gz u-boot-40c08a68b9acec6ef5a029708834c5a229bde421.tar.bz2 u-boot-40c08a68b9acec6ef5a029708834c5a229bde421.zip |
env: Mark env_get_location as weak
Allow boards and architectures to override the default environment lookup
code by overriding env_get_location.
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'env/env.c')
-rw-r--r-- | env/env.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |