xilffs: Fix make rules
When building xilffs with '-rR' as arguments to make causes this error: Compiling XilFFs Library gmake[2]: *** No rule to make target 'ff.o', needed by 'libxilffs.a'. Stop. Makefile:27: recipe for target 'psu_cortexa53_0/libsrc/xilffs_v3_1/src/make.libs' failed gmake[1]: *** [psu_cortexa53_0/libsrc/xilffs_v3_1/src/make.libs] Error 2 Fixing this by adding a pattern rules matching the required object files. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Reviewed-by: Harini Katakam <harinik@xilinx.com>
This commit is contained in:
parent
c064d50c14
commit
59de0ec3be
1 changed files with 5 additions and 4 deletions
|
@ -45,6 +45,7 @@ RELEASEDIR=../../../lib
|
|||
INCLUDEDIR=../../../include
|
||||
INCLUDES=-I./include/ -I${INCLUDEDIR}
|
||||
FATFS_DIR = .
|
||||
OBJDIR = obj/
|
||||
|
||||
LIB_SRCS = $(FATFS_DIR)/ff.c \
|
||||
$(FATFS_DIR)/diskio.c
|
||||
|
@ -54,7 +55,7 @@ LIB_SRCS = $(FATFS_DIR)/ff.c \
|
|||
|
||||
FATFS_SRCS = $(LIB_SRCS)
|
||||
|
||||
FATFS_OBJS = $(FATFS_SRCS:%.c=%.o)
|
||||
FATFS_OBJS = $(addprefix $(OBJDIR), $(FATFS_SRCS:%.c=%.o))
|
||||
|
||||
|
||||
EXPORT_INCLUDE_FILES = $(FATFS_DIR)/include/ff.h \
|
||||
|
@ -84,10 +85,10 @@ libxilffs.a: obj_dir print_msg_fatfs_base $(FATFS_OBJS)
|
|||
|
||||
|
||||
obj_dir:
|
||||
mkdir obj
|
||||
mkdir -p obj
|
||||
|
||||
print_msg_fatfs_base:
|
||||
@echo "Compiling XilFFs Library"
|
||||
|
||||
.c.o:
|
||||
$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) -c $< -o obj/$(@F)
|
||||
$(OBJDIR)%.o: $(FATFS_DIR)/%.c
|
||||
$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) -c $< -o $@
|
||||
|
|
Loading…
Add table
Reference in a new issue