1f22651cfSMichal Simek# 2f22651cfSMichal Simek# (C) Copyright 2000-2006 3f22651cfSMichal Simek# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4f22651cfSMichal Simek# 51a459660SWolfgang Denk# SPDX-License-Identifier: GPL-2.0+ 6f22651cfSMichal Simek# 7f22651cfSMichal Simek 8a79854a9SMasahiro Yamadaobj-y := board.o 966e6715cSMasahiro Yamada 1095b237ecSMasahiro Yamada# Copied from Xilinx SDK 2014.4 1195b237ecSMasahiro Yamadahw-platform-$(CONFIG_TARGET_ZYNQ_ZED) := zed_hw_platform 1295b237ecSMasahiro Yamadahw-platform-$(CONFIG_TARGET_ZYNQ_MICROZED) := MicroZed_hw_platform 1395b237ecSMasahiro Yamadahw-platform-$(CONFIG_TARGET_ZYNQ_ZC702) := ZC702_hw_platform 1495b237ecSMasahiro Yamadahw-platform-$(CONFIG_TARGET_ZYNQ_ZC706) := ZC706_hw_platform 1595b237ecSMasahiro Yamada# If you want to use customized ps7_init_gpl.c/h, 1695b237ecSMasahiro Yamada# enable CONFIG_ZYNQ_CUSTOM_INIT and put them into custom_hw_platform/. 1795b237ecSMasahiro Yamada# This line must be placed at the bottom of the list because 1895b237ecSMasahiro Yamada# it takes precedence over the default ones. 1995b237ecSMasahiro Yamadahw-platform-$(CONFIG_ZYNQ_CUSTOM_INIT) := custom_hw_platform 2095b237ecSMasahiro Yamada 2195b237ecSMasahiro Yamadainit-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\ 2295b237ecSMasahiro Yamada $(hw-platform-y)/ps7_init_gpl.o) 2395b237ecSMasahiro Yamada 2495b237ecSMasahiro Yamadaifeq ($(init-objs),) 2595b237ecSMasahiro Yamadaifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),) 2695b237ecSMasahiro Yamadainit-objs := ps7_init_gpl.o 2795b237ecSMasahiro Yamada$(if $(CONFIG_SPL_BUILD),\ 28*260bdf07SMichal Simek$(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/)) 2995b237ecSMasahiro Yamadaendif 3095b237ecSMasahiro Yamadaendif 3195b237ecSMasahiro Yamada 3295b237ecSMasahiro Yamadaobj-$(CONFIG_SPL_BUILD) += $(init-objs) 3332747491SMasahiro Yamada 3432747491SMasahiro Yamada# Suppress "warning: function declaration isn't a prototype" 35290f1f99SSoren BrinkmannCFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes 369bd53b62SMasahiro Yamada 3795b237ecSMasahiro Yamada# To include xil_io.h 3895b237ecSMasahiro YamadaCFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src) 3995b237ecSMasahiro Yamada 409bd53b62SMasahiro Yamada# Warn if CONFIG_TARGET_ZYNQ_ZC70X is enabled 419bd53b62SMasahiro Yamadaifeq ($(CONFIG_TARGET_ZYNQ_ZC70X),y) 429bd53b62SMasahiro Yamadaifeq ($(CONFIG_SPL_BUILD),y) 439bd53b62SMasahiro Yamada$(warning CONFIG_TARGET_ZYNQ_ZC70X is deprecated.) 449bd53b62SMasahiro Yamada$(warning Enable CONFIG_TARGET_ZYNQ_ZC702 or CONFIG_TARGET_ZYNQ_706 instead.) 459bd53b62SMasahiro Yamada$(warning "make zynq_zc70x_defconfig" is also deprecated.) 469bd53b62SMasahiro Yamada$(warning Use "make zynq_zc702_defconfig" or "make zynq_zc706_defconfig".) 479bd53b62SMasahiro Yamadaendif 489bd53b62SMasahiro Yamadaendif 49