]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - env/mmc.c
mmc: env: Unify the U_BOOT_ENV_LOCATION conditions
[thirdparty/u-boot.git] / env / mmc.c
index cb14bbb58f1393af5524b6de5077d73cecdf2c06..da84cddd74f0c151a5d9a617fd3820129eb89bdf 100644 (file)
--- a/env/mmc.c
+++ b/env/mmc.c
@@ -495,7 +495,7 @@ U_BOOT_ENV_LOCATION(mmc) = {
        .location       = ENVL_MMC,
        ENV_NAME("MMC")
        .load           = env_mmc_load,
-#ifndef CONFIG_SPL_BUILD
+#if defined(CONFIG_CMD_SAVEENV) && !defined(CONFIG_SPL_BUILD)
        .save           = env_save_ptr(env_mmc_save),
        .erase          = ENV_ERASE_PTR(env_mmc_erase)
 #endif