esp-open-rtos/extras/fatfs/component.mk
2016-10-24 22:30:51 +03:00

37 lines
1.1 KiB
Makefile

# Component makefile for extras/fatfs
INC_DIRS += $(fatfs_ROOT)..
# args for passing into compile rule generation
fatfs_SRC_DIR = $(fatfs_ROOT)
FATFS_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
# FatFs default parameters
include $(FATFS_DIR)defaults.mk
fatfs_CFLAGS = $(CFLAGS) \
-D_FS_READONLY=$(FATFS_FS_READONLY) \
-D_USE_STRFUNC=$(FATFS_USE_STRFUNC) \
-D_CODE_PAGE=$(FATFS_CODE_PAGE) \
-D_USE_FIND=$(FATFS_USE_FIND) \
-D_USE_MKFS=$(FATFS_USE_MKFS) \
-D_USE_FASTSEEK=$(FATFS_USE_FASTSEEK) \
-D_USE_EXPAND=$(FATFS_USE_EXPAND) \
-D_USE_CHMOD=$(FATFS_USE_CHMOD) \
-D_USE_LABEL=$(FATFS_USE_LABEL) \
-D_USE_FORWARD=$(FATFS_USE_FORWARD) \
-D_CODE_PAGE=$(FATFS_CODE_PAGE) \
-D_USE_LFN=$(FATFS_USE_LFN) \
-D_MAX_LFN=$(FATFS_MAX_LFN) \
-D_LFN_UNICODE=$(FATFS_LFN_UNICODE) \
-D_STRF_ENCODE=$(FATFS_STRF_ENCODE) \
-D_FS_RPATH=$(FATFS_FS_RPATH) \
-D_FS_EXFAT=$(FATFS_FS_EXFAT) \
-D_FS_NORTC=$(FATFS_FS_NORTC) \
-D_NORTC_MON=$(FATFS_NORTC_MON) \
-D_NORTC_MDAY=$(FATFS_NORTC_MDAY) \
-D_NORTC_YEAR=$(FATFS_NORTC_YEAR) \
-D_FS_LOCK=$(FATFS_FS_LOCK) \
-D_FS_TIMEOUT=$(FATFS_FS_TIMEOUT)
$(eval $(call component_compile_rules,fatfs))