spl: fat/fs: Add option to include/exclude FAT write build in SPL
[oweals/u-boot.git] / fs / fat / Makefile
index e64b61a0b430613f74586631e2c13a764cf5d811..f84efaccc75eba51b2be17d223b4aac4e134fcd8 100644 (file)
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0+
 #
 
-obj-$(CONFIG_FS_FAT)   := fat.o
-obj-$(CONFIG_FAT_WRITE):= fat_write.o
+obj-$(CONFIG_$(SPL_)FS_FAT) = fat.o
+obj-$(CONFIG_$(SPL_)FAT_WRITE) = fat_write.o