arm64: zynqmp: Do not include pm_cfg_obj.o when SPL is disabled
authorMichal Simek <michal.simek@xilinx.com>
Tue, 30 Jul 2019 15:07:27 +0000 (17:07 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 30 Jul 2019 15:09:58 +0000 (17:09 +0200)
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>
board/xilinx/zynqmp/Makefile

index b4d39edc118f93b70fdca24896c3e0020e41ada7..5ace6cc1b47898dcf36f25fb640d40532becd6ad 100644 (file)
@@ -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