aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-mediatek/patches/007-env-fat-use-bootdevice.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/boot/uboot-mediatek/patches/007-env-fat-use-bootdevice.patch')
-rw-r--r--package/boot/uboot-mediatek/patches/007-env-fat-use-bootdevice.patch8
1 files changed, 3 insertions, 5 deletions
diff --git a/package/boot/uboot-mediatek/patches/007-env-fat-use-bootdevice.patch b/package/boot/uboot-mediatek/patches/007-env-fat-use-bootdevice.patch
index a0236785d0..2ac0012286 100644
--- a/package/boot/uboot-mediatek/patches/007-env-fat-use-bootdevice.patch
+++ b/package/boot/uboot-mediatek/patches/007-env-fat-use-bootdevice.patch
@@ -37,11 +37,10 @@ diff --git a/env/fat.c b/env/fat.c
index 35a1955e63..63aced9317 100644
--- a/env/fat.c
+++ b/env/fat.c
-@@ -29,6 +29,36 @@
- # endif
+@@ -29,6 +29,34 @@
+ # define LOADENV
#endif
-+#if defined(CMD_SAVEENV) || defined(CMD_LOADENV)
+__weak int mmc_get_env_dev(void)
+{
+#ifdef CONFIG_SYS_MMC_ENV_DEV
@@ -69,11 +68,10 @@ index 35a1955e63..63aced9317 100644
+ return CONFIG_ENV_FAT_DEVICE_AND_PART;
+#endif
+}
-+#endif
+
- #ifdef CMD_SAVEENV
static int env_fat_save(void)
{
+ env_t __aligned(ARCH_DMA_MINALIGN) env_new;
@@ -43,7 +71,7 @@ static int env_fat_save(void)
return err;