Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Michal Simek | af482d5 | 2012-09-28 09:56:37 +0000 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2000-2006 |
| 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Michal Simek | af482d5 | 2012-09-28 09:56:37 +0000 | [diff] [blame] | 5 | |
Masahiro Yamada | 5d23de5 | 2013-10-21 11:53:37 +0900 | [diff] [blame] | 6 | obj-y := board.o |
Masahiro Yamada | c2d1079 | 2014-05-12 12:18:30 +0900 | [diff] [blame] | 7 | |
Michal Simek | 3917c4f | 2016-05-20 14:59:33 +0200 | [diff] [blame] | 8 | hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE)) |
Masahiro Yamada | 2ab28d1 | 2015-05-18 15:31:52 +0900 | [diff] [blame] | 9 | |
| 10 | init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\ |
| 11 | $(hw-platform-y)/ps7_init_gpl.o) |
| 12 | |
| 13 | ifeq ($(init-objs),) |
| 14 | ifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),) |
| 15 | init-objs := ps7_init_gpl.o |
| 16 | $(if $(CONFIG_SPL_BUILD),\ |
Michal Simek | b9c834a | 2015-07-21 11:05:31 +0200 | [diff] [blame] | 17 | $(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/)) |
Masahiro Yamada | 2ab28d1 | 2015-05-18 15:31:52 +0900 | [diff] [blame] | 18 | endif |
| 19 | endif |
| 20 | |
| 21 | obj-$(CONFIG_SPL_BUILD) += $(init-objs) |
Masahiro Yamada | 50ee066 | 2014-05-29 14:46:13 +0900 | [diff] [blame] | 22 | |
| 23 | # Suppress "warning: function declaration isn't a prototype" |
Soren Brinkmann | 0068543 | 2014-10-30 10:52:43 -0700 | [diff] [blame] | 24 | CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes |
Masahiro Yamada | 17b3d37 | 2015-05-18 15:31:51 +0900 | [diff] [blame] | 25 | |
Masahiro Yamada | 2ab28d1 | 2015-05-18 15:31:52 +0900 | [diff] [blame] | 26 | # To include xil_io.h |
| 27 | CFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src) |