Add saveenv.

Signed-off-by: Tyler Baker <tyler.baker@linaro.org>