]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/xilinx/zynq/Makefile
zynq: treat ps7_init.c/h as external files to ignore them
[karo-tx-uboot.git] / board / xilinx / zynq / Makefile
index 3f19a1cd8b23d281cacb5f3a823f8e899fc79457..fd93f6317baf22b44fde522dd7db83d50755e9be 100644 (file)
@@ -6,4 +6,7 @@
 #
 
 obj-y  := board.o
-obj-$(CONFIG_SPL_BUILD)        += ps7_init.o
+
+# Please copy ps7_init.c/h from hw project to this directory
+obj-$(CONFIG_SPL_BUILD) += \
+               $(if $(wildcard $(srctree)/$(src)/ps7_init.c), ps7_init.o)