Skip to content
Commit 4acc2a10 authored by Mike Frysinger's avatar Mike Frysinger Committed by Wolfgang Denk
Browse files

fix building when saveenv is disabled in some setups



If you enable environment in the flash, but disable the embedded
option, and you disable the saveenv command, then the #if nested
logic will trigger a compile failure:
env_flash.c: In function 'env_relocate_spec':
env_flash.c:399: error: 'flash_addr' undeclared (first use in this function)
The fix is to add CMD_SAVEENV ifdef protection like everywhere else.

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent ccf1ad53
Loading
Loading
Loading
Loading
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