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 | |
Masahiro Yamada | 95b237e | 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 |
| 15 | # If you want to use customized ps7_init_gpl.c/h, |
| 16 | # enable CONFIG_ZYNQ_CUSTOM_INIT and put them into custom_hw_platform/. |
| 17 | # This line must be placed at the bottom of the list because |
| 18 | # it takes precedence over the default ones. |
| 19 | hw-platform-$(CONFIG_ZYNQ_CUSTOM_INIT) := custom_hw_platform |
| 20 | |
| 21 | init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\ |
| 22 | $(hw-platform-y)/ps7_init_gpl.o) |
| 23 | |
| 24 | ifeq ($(init-objs),) |
| 25 | ifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),) |
| 26 | init-objs := ps7_init_gpl.o |
| 27 | $(if $(CONFIG_SPL_BUILD),\ |
Michal Simek | 260bdf0 | 2015-07-21 11:05:31 +0200 | [diff] [blame^] | 28 | $(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] | 29 | endif |
| 30 | endif |
| 31 | |
| 32 | obj-$(CONFIG_SPL_BUILD) += $(init-objs) |
Masahiro Yamada | 3274749 | 2014-05-29 14:46:13 +0900 | [diff] [blame] | 33 | |
| 34 | # Suppress "warning: function declaration isn't a prototype" |
Soren Brinkmann | 290f1f9 | 2014-10-30 10:52:43 -0700 | [diff] [blame] | 35 | CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes |
Masahiro Yamada | 9bd53b6 | 2015-05-18 15:31:51 +0900 | [diff] [blame] | 36 | |
Masahiro Yamada | 95b237e | 2015-05-18 15:31:52 +0900 | [diff] [blame] | 37 | # To include xil_io.h |
| 38 | CFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src) |
| 39 | |
Masahiro Yamada | 9bd53b6 | 2015-05-18 15:31:51 +0900 | [diff] [blame] | 40 | # Warn if CONFIG_TARGET_ZYNQ_ZC70X is enabled |
| 41 | ifeq ($(CONFIG_TARGET_ZYNQ_ZC70X),y) |
| 42 | ifeq ($(CONFIG_SPL_BUILD),y) |
| 43 | $(warning CONFIG_TARGET_ZYNQ_ZC70X is deprecated.) |
| 44 | $(warning Enable CONFIG_TARGET_ZYNQ_ZC702 or CONFIG_TARGET_ZYNQ_706 instead.) |
| 45 | $(warning "make zynq_zc70x_defconfig" is also deprecated.) |
| 46 | $(warning Use "make zynq_zc702_defconfig" or "make zynq_zc706_defconfig".) |
| 47 | endif |
| 48 | endif |