blob: 7de0212bc9f79a7571f0d11be0e451ab3cb02d88 [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
Michal Simek3917c4f2016-05-20 14:59:33 +020010hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE))
Masahiro Yamada2ab28d12015-05-18 15:31:52 +090011
12init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
13 $(hw-platform-y)/ps7_init_gpl.o)
14
15ifeq ($(init-objs),)
16ifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),)
17init-objs := ps7_init_gpl.o
18$(if $(CONFIG_SPL_BUILD),\
Michal Simekb9c834a2015-07-21 11:05:31 +020019$(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/))
Masahiro Yamada2ab28d12015-05-18 15:31:52 +090020endif
21endif
22
23obj-$(CONFIG_SPL_BUILD) += $(init-objs)
Masahiro Yamada50ee0662014-05-29 14:46:13 +090024
25# Suppress "warning: function declaration isn't a prototype"
Soren Brinkmann00685432014-10-30 10:52:43 -070026CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes
Masahiro Yamada17b3d372015-05-18 15:31:51 +090027
Masahiro Yamada2ab28d12015-05-18 15:31:52 +090028# To include xil_io.h
29CFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src)