package/uboot-omap: re-introduce patches dropped by update to v2017.01 TODO: add...
[openwrt/staging/lynxis/omap.git] / package / boot / uboot-omap / patches / 103-disable-fat-write-spl.patch
1 Index: u-boot-2017.01/fs/fat/Makefile
2 ===================================================================
3 --- u-boot-2017.01.orig/fs/fat/Makefile
4 +++ u-boot-2017.01/fs/fat/Makefile
5 @@ -4,8 +4,8 @@
6 #
7
8 obj-$(CONFIG_FS_FAT) := fat.o
9 -obj-$(CONFIG_FAT_WRITE):= fat_write.o
10
11 ifndef CONFIG_SPL_BUILD
12 +obj-$(CONFIG_FAT_WRITE):= fat_write.o
13 obj-$(CONFIG_FS_FAT) += file.o
14 endif
15 Index: u-boot-2017.01/fs/fat/fat.c
16 ===================================================================
17 --- u-boot-2017.01.orig/fs/fat/fat.c
18 +++ u-boot-2017.01/fs/fat/fat.c
19 @@ -163,7 +163,7 @@ static void get_name(dir_entry *dirent,
20 }
21
22 static int flush_dirty_fat_buffer(fsdata *mydata);
23 -#if !defined(CONFIG_FAT_WRITE)
24 +#if !defined(CONFIG_FAT_WRITE) || defined(CONFIG_SPL_BUILD)
25 /* Stub for read only operation */
26 int flush_dirty_fat_buffer(fsdata *mydata)
27 {