2 # Rules to add yaffs2 to the PiOS target
5 # Note that the PIOS target-specific makefile will detect that YAFFS2_DIR
6 # has been defined and add in the target-specific pieces separately.
11 # Directory containing this makefile
13 YAFFS2_DIR
:= $(dir $(lastword
$(MAKEFILE_LIST
)))
17 CDEFS
+= -DCONFIG_YAFFS_DIRECT
18 CDEFS
+= -DCONFIG_YAFFS_YAFFS2
19 CDEFS
+= -DCONFIG_YAFFS_DEFINES_TYPES
20 CDEFS
+= -DCONFIG_YAFFS_PROVIDE_DEFS
21 CDEFS
+= -DCONFIG_YAFFSFS_PROVIDE_VALUES
22 CDEFS
+= -DCONFIG_YAFFS_OP
23 #ARCHFLAGS += -DARCH_POSIX
26 # Yaffs2 device library source and includes
28 SRC
+= $(sort $(wildcard $(YAFFS2_DIR
)*.c
))
29 EXTRAINCDIRS
+= $(YAFFS2_DIR
)/inc