xref: /openbmc/u-boot/board/xilinx/zynq/Makefile (revision 83d290c5)
1*83d290c5STom Rini# SPDX-License-Identifier: GPL-2.0+
2f22651cfSMichal Simek#
3f22651cfSMichal Simek# (C) Copyright 2000-2006
4f22651cfSMichal Simek# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5f22651cfSMichal Simek
6a79854a9SMasahiro Yamadaobj-y	:= board.o
766e6715cSMasahiro Yamada
8ad5b5801SMichal Simekhw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE))
995b237ecSMasahiro Yamada
1095b237ecSMasahiro Yamadainit-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
1195b237ecSMasahiro Yamada	$(hw-platform-y)/ps7_init_gpl.o)
1295b237ecSMasahiro Yamada
1395b237ecSMasahiro Yamadaifeq ($(init-objs),)
1495b237ecSMasahiro Yamadaifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),)
1595b237ecSMasahiro Yamadainit-objs := ps7_init_gpl.o
1695b237ecSMasahiro Yamada$(if $(CONFIG_SPL_BUILD),\
17260bdf07SMichal Simek$(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/))
1895b237ecSMasahiro Yamadaendif
1995b237ecSMasahiro Yamadaendif
2095b237ecSMasahiro Yamada
2195b237ecSMasahiro Yamadaobj-$(CONFIG_SPL_BUILD) += $(init-objs)
2232747491SMasahiro Yamada
2332747491SMasahiro Yamada# Suppress "warning: function declaration isn't a prototype"
24290f1f99SSoren BrinkmannCFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes
259bd53b62SMasahiro Yamada
2695b237ecSMasahiro Yamada# To include xil_io.h
2795b237ecSMasahiro YamadaCFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src)
28