Skip to content

Commit 9d34eae

Browse files
committed
[fix] target/zynq-zybo-de0-nano-soc/Makefile for an error occurs if there is no u-boot directory.
1 parent c43dec5 commit 9d34eae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

target/zynq-zybo-de0-nano-soc/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION=4.8.17
22
XILINX_TARGET_PATH=../zynq-zybo
3-
ALTERA_TARGET_PATH=../de0-nano-soc/
3+
ALTERA_TARGET_PATH=../de0-nano-soc
44

55
TARGET = boot/boot.scr \
66
boot/zImage-$(VERSION)-armv7-fpga \
@@ -18,6 +18,7 @@ TARGET = boot/boot.scr \
1818

1919
COPY = cp
2020
REMOVE = rm
21+
MKDIR = mkdir
2122

2223
target : $(TARGET)
2324

@@ -55,8 +56,10 @@ boot/DE0_NANO_SOC.rbf : $(ALTERA_TARGET_PATH)/boot/DE0_NANO_S
5556
$(COPY) $< $@
5657

5758
u-boot/u-boot-spl.sfp : $(ALTERA_TARGET_PATH)/u-boot/u-boot-spl.sfp
59+
@if [ ! -d u-boot ] ; then $(MKDIR) -p u-boot; fi
5860
$(COPY) $< $@
5961

6062
u-boot/u-boot.img : $(ALTERA_TARGET_PATH)/u-boot/u-boot.img
63+
@if [ ! -d u-boot ] ; then $(MKDIR) -p u-boot; fi
6164
$(COPY) $< $@
6265

0 commit comments

Comments
 (0)