blob: fd5d6fe950c7c9aaa420aa85520df27fbd8de167 [file] [log] [blame]
Michal Simekf22651c2012-09-28 09:56:37 +00001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Michal Simekf22651c2012-09-28 09:56:37 +00006#
7
Masahiro Yamadaa79854a2013-10-21 11:53:37 +09008obj-y := board.o
Masahiro Yamada66e67152014-05-12 12:18:30 +09009
Masahiro Yamada95b237e2015-05-18 15:31:52 +090010# 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
15# If you want to use customized ps7_init_gpl.c/h,
16# enable CONFIG_ZYNQ_CUSTOM_INIT and put them into custom_hw_platform/.
17# This line must be placed at the bottom of the list because
18# it takes precedence over the default ones.
19hw-platform-$(CONFIG_ZYNQ_CUSTOM_INIT) := custom_hw_platform
20
21init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
22 $(hw-platform-y)/ps7_init_gpl.o)
23
24ifeq ($(init-objs),)
25ifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),)
26init-objs := ps7_init_gpl.o
27$(if $(CONFIG_SPL_BUILD),\
Michal Simek260bdf02015-07-21 11:05:31 +020028$(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/))
Masahiro Yamada95b237e2015-05-18 15:31:52 +090029endif
30endif
31
32obj-$(CONFIG_SPL_BUILD) += $(init-objs)
Masahiro Yamada32747492014-05-29 14:46:13 +090033
34# Suppress "warning: function declaration isn't a prototype"
Soren Brinkmann290f1f92014-10-30 10:52:43 -070035CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes
Masahiro Yamada9bd53b62015-05-18 15:31:51 +090036
Masahiro Yamada95b237e2015-05-18 15:31:52 +090037# To include xil_io.h
38CFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src)
39
Masahiro Yamada9bd53b62015-05-18 15:31:51 +090040# Warn if CONFIG_TARGET_ZYNQ_ZC70X is enabled
41ifeq ($(CONFIG_TARGET_ZYNQ_ZC70X),y)
42ifeq ($(CONFIG_SPL_BUILD),y)
43$(warning CONFIG_TARGET_ZYNQ_ZC70X is deprecated.)
44$(warning Enable CONFIG_TARGET_ZYNQ_ZC702 or CONFIG_TARGET_ZYNQ_706 instead.)
45$(warning "make zynq_zc70x_defconfig" is also deprecated.)
46$(warning Use "make zynq_zc702_defconfig" or "make zynq_zc706_defconfig".)
47endif
48endif