fix building when saveenv is disabled in some setups
authorMike Frysinger <vapier@gentoo.org>
Fri, 2 May 2008 22:17:50 +0000 (18:17 -0400)
committerWolfgang Denk <wd@denx.de>
Sat, 3 May 2008 22:22:45 +0000 (00:22 +0200)
commit4acc2a108ad0a669165924704a6cb083f9138242
tree2273b187b87f290e9ce020111f74aaaa65d9f04d
parentccf1ad535ae1c0dc2d466235c668adbdfe3a55b7
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: Mike Frysinger <vapier@gentoo.org>
common/env_flash.c