blob: eab93038cefee8ad9130148b5fe77aed72b65e0c [file] [log] [blame]
Michal Simekaf482d52012-09-28 09:56:37 +00001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Michal Simekaf482d52012-09-28 09:56:37 +00006#
7
Masahiro Yamada5d23de52013-10-21 11:53:37 +09008obj-y := board.o
Masahiro Yamadac2d10792014-05-12 12:18:30 +09009
Masahiro Yamada2ab28d12015-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
Nathan Rossi4eeed0e2015-11-24 19:34:09 +100015hw-platform-$(CONFIG_TARGET_ZYNQ_ZYBO) := zybo_hw_platform
Masahiro Yamada2ab28d12015-05-18 15:31:52 +090016# 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),\
Michal Simekb9c834a2015-07-21 11:05:31 +020029$(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/))
Masahiro Yamada2ab28d12015-05-18 15:31:52 +090030endif
31endif
32
33obj-$(CONFIG_SPL_BUILD) += $(init-objs)
Masahiro Yamada50ee0662014-05-29 14:46:13 +090034
35# Suppress "warning: function declaration isn't a prototype"
Soren Brinkmann00685432014-10-30 10:52:43 -070036CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes
Masahiro Yamada17b3d372015-05-18 15:31:51 +090037
Masahiro Yamada2ab28d12015-05-18 15:31:52 +090038# To include xil_io.h
39CFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src)