blob: 5a76a26720cdbfb44af48a134495326c73289a6f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Michal Simekaf482d52012-09-28 09:56:37 +00002#
3# (C) Copyright 2000-2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Michal Simekaf482d52012-09-28 09:56:37 +00005
Masahiro Yamada5d23de52013-10-21 11:53:37 +09006obj-y := board.o
Masahiro Yamadac2d10792014-05-12 12:18:30 +09007
Michal Simek3917c4f2016-05-20 14:59:33 +02008hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE))
Masahiro Yamada2ab28d12015-05-18 15:31:52 +09009
10init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
11 $(hw-platform-y)/ps7_init_gpl.o)
12
13ifeq ($(init-objs),)
14ifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),)
15init-objs := ps7_init_gpl.o
16$(if $(CONFIG_SPL_BUILD),\
Michal Simekb9c834a2015-07-21 11:05:31 +020017$(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/))
Masahiro Yamada2ab28d12015-05-18 15:31:52 +090018endif
19endif
20
21obj-$(CONFIG_SPL_BUILD) += $(init-objs)
Masahiro Yamada50ee0662014-05-29 14:46:13 +090022
23# Suppress "warning: function declaration isn't a prototype"
Soren Brinkmann00685432014-10-30 10:52:43 -070024CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes
Masahiro Yamada17b3d372015-05-18 15:31:51 +090025
Masahiro Yamada2ab28d12015-05-18 15:31:52 +090026# To include xil_io.h
27CFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src)