1f22651cfSMichal Simek# 2f22651cfSMichal Simek# (C) Copyright 2000-2006 3f22651cfSMichal Simek# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4f22651cfSMichal Simek# 51a459660SWolfgang Denk# SPDX-License-Identifier: GPL-2.0+ 6f22651cfSMichal Simek# 7f22651cfSMichal Simek 8a79854a9SMasahiro Yamadaobj-y := board.o 966e6715cSMasahiro Yamada 10*ad5b5801SMichal Simekhw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE)) 1195b237ecSMasahiro Yamada 1295b237ecSMasahiro Yamadainit-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\ 1395b237ecSMasahiro Yamada $(hw-platform-y)/ps7_init_gpl.o) 1495b237ecSMasahiro Yamada 1595b237ecSMasahiro Yamadaifeq ($(init-objs),) 1695b237ecSMasahiro Yamadaifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),) 1795b237ecSMasahiro Yamadainit-objs := ps7_init_gpl.o 1895b237ecSMasahiro Yamada$(if $(CONFIG_SPL_BUILD),\ 19260bdf07SMichal Simek$(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/)) 2095b237ecSMasahiro Yamadaendif 2195b237ecSMasahiro Yamadaendif 2295b237ecSMasahiro Yamada 2395b237ecSMasahiro Yamadaobj-$(CONFIG_SPL_BUILD) += $(init-objs) 2432747491SMasahiro Yamada 2532747491SMasahiro Yamada# Suppress "warning: function declaration isn't a prototype" 26290f1f99SSoren BrinkmannCFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes 279bd53b62SMasahiro Yamada 2895b237ecSMasahiro Yamada# To include xil_io.h 2995b237ecSMasahiro YamadaCFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src) 30