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