xref: /openbmc/u-boot/board/xilinx/zynq/Makefile (revision dffceb4b)
1#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8obj-y	:= board.o
9
10# Copied from Xilinx SDK 2014.4
11hw-platform-$(CONFIG_TARGET_ZYNQ_ZED)		:= zed_hw_platform
12hw-platform-$(CONFIG_TARGET_ZYNQ_MICROZED)	:= MicroZed_hw_platform
13hw-platform-$(CONFIG_TARGET_ZYNQ_ZC702)		:= ZC702_hw_platform
14hw-platform-$(CONFIG_TARGET_ZYNQ_ZC706)		:= ZC706_hw_platform
15hw-platform-$(CONFIG_TARGET_ZYNQ_ZYBO)		:= zybo_hw_platform
16# If you want to use customized ps7_init_gpl.c/h,
17# enable CONFIG_ZYNQ_CUSTOM_INIT and put them into custom_hw_platform/.
18# This line must be placed at the bottom of the list because
19# it takes precedence over the default ones.
20hw-platform-$(CONFIG_ZYNQ_CUSTOM_INIT)		:= custom_hw_platform
21
22init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
23	$(hw-platform-y)/ps7_init_gpl.o)
24
25ifeq ($(init-objs),)
26ifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),)
27init-objs := ps7_init_gpl.o
28$(if $(CONFIG_SPL_BUILD),\
29$(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/))
30endif
31endif
32
33obj-$(CONFIG_SPL_BUILD) += $(init-objs)
34
35# Suppress "warning: function declaration isn't a prototype"
36CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes
37
38# To include xil_io.h
39CFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src)
40