Michal Simek | af482d5 | 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 | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Michal Simek | af482d5 | 2012-09-28 09:56:37 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Masahiro Yamada | 5d23de5 | 2013-10-21 11:53:37 +0900 | [diff] [blame] | 8 | obj-y := board.o |
Masahiro Yamada | c2d1079 | 2014-05-12 12:18:30 +0900 | [diff] [blame] | 9 | |
Masahiro Yamada | 2ab28d1 | 2015-05-18 15:31:52 +0900 | [diff] [blame] | 10 | # Copied from Xilinx SDK 2014.4 |
| 11 | hw-platform-$(CONFIG_TARGET_ZYNQ_ZED) := zed_hw_platform |
| 12 | hw-platform-$(CONFIG_TARGET_ZYNQ_MICROZED) := MicroZed_hw_platform |
| 13 | hw-platform-$(CONFIG_TARGET_ZYNQ_ZC702) := ZC702_hw_platform |
| 14 | hw-platform-$(CONFIG_TARGET_ZYNQ_ZC706) := ZC706_hw_platform |
Nathan Rossi | 4eeed0e | 2015-11-24 19:34:09 +1000 | [diff] [blame] | 15 | hw-platform-$(CONFIG_TARGET_ZYNQ_ZYBO) := zybo_hw_platform |
Masahiro Yamada | 2ab28d1 | 2015-05-18 15:31:52 +0900 | [diff] [blame] | 16 | # 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. |
| 20 | hw-platform-$(CONFIG_ZYNQ_CUSTOM_INIT) := custom_hw_platform |
| 21 | |
| 22 | init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\ |
| 23 | $(hw-platform-y)/ps7_init_gpl.o) |
| 24 | |
| 25 | ifeq ($(init-objs),) |
| 26 | ifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),) |
| 27 | init-objs := ps7_init_gpl.o |
| 28 | $(if $(CONFIG_SPL_BUILD),\ |
Michal Simek | b9c834a | 2015-07-21 11:05:31 +0200 | [diff] [blame] | 29 | $(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] | 30 | endif |
| 31 | endif |
| 32 | |
| 33 | obj-$(CONFIG_SPL_BUILD) += $(init-objs) |
Masahiro Yamada | 50ee066 | 2014-05-29 14:46:13 +0900 | [diff] [blame] | 34 | |
| 35 | # Suppress "warning: function declaration isn't a prototype" |
Soren Brinkmann | 0068543 | 2014-10-30 10:52:43 -0700 | [diff] [blame] | 36 | CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes |
Masahiro Yamada | 17b3d37 | 2015-05-18 15:31:51 +0900 | [diff] [blame] | 37 | |
Masahiro Yamada | 2ab28d1 | 2015-05-18 15:31:52 +0900 | [diff] [blame] | 38 | # To include xil_io.h |
| 39 | CFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src) |