1# SPDX-License-Identifier: GPL-2.0+ 2# 3# (C) Copyright 2000-2006 4# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5 6obj-y := board.o 7 8hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE)) 9 10init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\ 11 $(hw-platform-y)/ps7_init_gpl.o) 12 13ifeq ($(init-objs),) 14ifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),) 15init-objs := ps7_init_gpl.o 16$(if $(CONFIG_SPL_BUILD),\ 17$(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/)) 18endif 19endif 20 21obj-$(CONFIG_SPL_BUILD) += $(init-objs) 22 23# Suppress "warning: function declaration isn't a prototype" 24CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes 25 26# To include xil_io.h 27CFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src) 28