2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
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
21 init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
22 $(hw-platform-y)/ps7_init_gpl.o)
25 ifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),)
26 init-objs := ps7_init_gpl.o
27 $(if $(CONFIG_SPL_BUILD),\
28 $(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/))
32 obj-$(CONFIG_SPL_BUILD) += $(init-objs)
34 # Suppress "warning: function declaration isn't a prototype"
35 CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes
38 CFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src)