Skip to content
Snippets Groups Projects
Commit 12b5723b authored by Michael Jones's avatar Michael Jones Committed by Wolfgang Denk
Browse files

mv_common.c: don't compile reset_environment if ENV_IS_NOWHERE


Doesn't make sense to provide this function to boards which defined
CONFIG_ENV_IS_NOWHERE. Such a board gets a linking error because
common/env_nowhere.c doesn't define saveenv().

Signed-off-by: default avatarMichael Jones <michael.jones@matrix-vision.de>
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
parent ee44fb29
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ static char* entries_to_keep[] = {
#define MV_MAX_ENV_ENTRY_LENGTH 64
#define MV_KEEP_ENTRIES ARRAY_SIZE(entries_to_keep)
#ifndef CONFIG_ENV_IS_NOWHERE
void mv_reset_environment(void)
{
int i;
......@@ -67,6 +68,7 @@ void mv_reset_environment(void)
saveenv();
}
#endif
int mv_load_fpga(void)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment