aboutsummaryrefslogtreecommitdiff
path: root/board/xilinx
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2019-07-30 17:07:27 +0200
committerMichal Simek <michal.simek@xilinx.com>2019-07-30 17:09:58 +0200
commitcd228cc04afc79c1383be707d0b812f45dfd53aa (patch)
tree54ebbd9051452346d59cddacdff4cb970227b4ef /board/xilinx
parent5a4675a9171785475b49eb8ad0778dc28a6d8746 (diff)
downloadu-boot-cd228cc04afc79c1383be707d0b812f45dfd53aa.zip
u-boot-cd228cc04afc79c1383be707d0b812f45dfd53aa.tar.gz
u-boot-cd228cc04afc79c1383be707d0b812f45dfd53aa.tar.bz2
arm64: zynqmp: Do not include pm_cfg_obj.o when SPL is disabled
xilinx_zynqmp_mini configuration is throwing build error: readlink: missing operand Try 'readlink --help' for more information. because CONFIG_ZYNQMP_SPL_PM_CFG_OBJ_FILE is not defined at all and Makefile pass ifneq condition. Add SPL_BUILD dependency which is also reflected in Kconfig. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx')
-rw-r--r--board/xilinx/zynqmp/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/xilinx/zynqmp/Makefile b/board/xilinx/zynqmp/Makefile
index b4d39ed..5ace6cc 100644
--- a/board/xilinx/zynqmp/Makefile
+++ b/board/xilinx/zynqmp/Makefile
@@ -33,10 +33,12 @@ ifneq ($(call ifdef_any_of, CONFIG_ZYNQMP_PSU_INIT_ENABLED CONFIG_SPL_BUILD),)
obj-y += $(init-objs)
endif
+ifdef CONFIG_SPL_BUILD
ifneq ($(CONFIG_ZYNQMP_SPL_PM_CFG_OBJ_FILE),"")
obj-$(CONFIG_SPL_BUILD) += pm_cfg_obj.o
$(obj)/pm_cfg_obj.o: $(shell cd $(srctree); readlink -f $(CONFIG_ZYNQMP_SPL_PM_CFG_OBJ_FILE)) FORCE
endif
+endif
obj-$(CONFIG_MMC_SDHCI_ZYNQ) += tap_delays.o