xilsecure: Fix make rules
When building xilsecure with '-rR' as arguments to make causes this error: Compiling Xilsecure Library make[1]: *** No rule to make target 'xsecure_sha.o', needed by 'libxilsecure.a'. Stop. Makefile:27: recipe for target 'psu_cortexa53_0/libsrc/xilsecure_v1_0/src/make.libs' failed make: *** [psu_cortexa53_0/libsrc/xilsecure_v1_0/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> Acked-by: Bhavik Ameta <bameta@xilinx.com>
This commit is contained in:
parent
c8bca6ce1a
commit
731fcf06db
1 changed files with 5 additions and 4 deletions
|
@ -57,6 +57,7 @@ RELEASEDIR=../../../lib
|
|||
INCLUDEDIR=../../../include
|
||||
INCLUDES=-I./include/ -I${INCLUDEDIR}
|
||||
SECURE_DIR = .
|
||||
OBJDIR = obj/
|
||||
|
||||
LIB_SRCS = $(SECURE_DIR)/xsecure_sha.c \
|
||||
$(SECURE_DIR)/xsecure_aes.c \
|
||||
|
@ -67,7 +68,7 @@ LIB_SRCS = $(SECURE_DIR)/xsecure_sha.c \
|
|||
|
||||
SECURE_SRCS = $(LIB_SRCS)
|
||||
|
||||
SECURE_OBJS = $(SECURE_SRCS:%.c=%.o)
|
||||
SECURE_OBJS = $(addprefix $(OBJDIR), $(SECURE_SRCS:%.c=%.o))
|
||||
|
||||
|
||||
EXPORT_INCLUDE_FILES = $(SECURE_DIR)/xsecure_sha.h \
|
||||
|
@ -96,10 +97,10 @@ libxilsecure.a: obj_dir print_msg_secure_base $(SECURE_OBJS)
|
|||
|
||||
|
||||
obj_dir:
|
||||
mkdir obj
|
||||
mkdir -p obj
|
||||
|
||||
print_msg_secure_base:
|
||||
@echo "Compiling Xilsecure Library"
|
||||
|
||||
.c.o:
|
||||
$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) -c $< -o obj/$(@F)
|
||||
$(OBJDIR)%.o: $(SECURE_DIR)/%.c
|
||||
$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) -c $< -o $@
|
||||
|
|
Loading…
Add table
Reference in a new issue