103-disable-fat-write-spl.patch 842 B

123456789101112131415161718192021222324252627
  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. obj-$(CONFIG_FS_FAT) := fat.o
  8. -obj-$(CONFIG_FAT_WRITE):= fat_write.o
  9. ifndef CONFIG_SPL_BUILD
  10. +obj-$(CONFIG_FAT_WRITE):= fat_write.o
  11. obj-$(CONFIG_FS_FAT) += file.o
  12. endif
  13. Index: u-boot-2017.01/fs/fat/fat.c
  14. ===================================================================
  15. --- u-boot-2017.01.orig/fs/fat/fat.c
  16. +++ u-boot-2017.01/fs/fat/fat.c
  17. @@ -163,7 +163,7 @@ static void get_name(dir_entry *dirent,
  18. }
  19. static int flush_dirty_fat_buffer(fsdata *mydata);
  20. -#if !defined(CONFIG_FAT_WRITE)
  21. +#if !defined(CONFIG_FAT_WRITE) || defined(CONFIG_SPL_BUILD)
  22. /* Stub for read only operation */
  23. int flush_dirty_fat_buffer(fsdata *mydata)
  24. {