From aa1308867a341e95fc3d8bd72d0604fbb97173be Mon Sep 17 00:00:00 2001 From: Florian Agbuya Date: Fri, 24 Nov 2023 17:32:03 +0800 Subject: [PATCH] add fsbl.patch --- fsbl.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 fsbl.patch diff --git a/fsbl.patch b/fsbl.patch new file mode 100644 index 0000000..2537177 --- /dev/null +++ b/fsbl.patch @@ -0,0 +1,31 @@ +diff --git a/lib/sw_apps/zynq_fsbl/src/Makefile b/lib/sw_apps/zynq_fsbl/src/Makefile +index 0e3ccdf1c5..a5b02f386e 100644 +--- a/lib/sw_apps/zynq_fsbl/src/Makefile ++++ b/lib/sw_apps/zynq_fsbl/src/Makefile +@@ -71,11 +71,14 @@ endif + all: $(EXEC) + + $(EXEC): $(LIBS) $(OBJS) $(INCLUDES) +- cp $(BSP_DIR)/$(BOARD)/ps7_init.* . + $(LINKER) $(LD1FLAGS) -o $@ $(OBJS) $(LDFLAGS) + rm -rf $(OBJS) +- +- ++ ++.PHONY: ps7_init ++ ++ps7_init: ++ cp $(BSP_DIR)/$(BOARD)/ps7_init.* . ++ + $(LIBS): + echo "Copying BSP files" + $(BSP_DIR)/copy_bsp.sh $(BOARD) $(CC) +@@ -86,7 +89,7 @@ $(LIBS): + make -C $(BSP_DIR) -k all "CC=armcc" "AR=armar" "C_FLAGS= -O2 -c" "EC_FLAGS=--debug --wchar32"; \ + fi; + +-%.o:%.c ++%.o:%.c ps7_init + $(CC) $(CC_FLAGS) $(CFLAGS) $(ECFLAGS) -c $< -o $@ $(INCLUDEPATH) + + %.o:%.S