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 10*95b237ecSMasahiro Yamada# Copied from Xilinx SDK 2014.4 11*95b237ecSMasahiro Yamadahw-platform-$(CONFIG_TARGET_ZYNQ_ZED) := zed_hw_platform 12*95b237ecSMasahiro Yamadahw-platform-$(CONFIG_TARGET_ZYNQ_MICROZED) := MicroZed_hw_platform 13*95b237ecSMasahiro Yamadahw-platform-$(CONFIG_TARGET_ZYNQ_ZC702) := ZC702_hw_platform 14*95b237ecSMasahiro Yamadahw-platform-$(CONFIG_TARGET_ZYNQ_ZC706) := ZC706_hw_platform 15*95b237ecSMasahiro Yamada# If you want to use customized ps7_init_gpl.c/h, 16*95b237ecSMasahiro Yamada# enable CONFIG_ZYNQ_CUSTOM_INIT and put them into custom_hw_platform/. 17*95b237ecSMasahiro Yamada# This line must be placed at the bottom of the list because 18*95b237ecSMasahiro Yamada# it takes precedence over the default ones. 19*95b237ecSMasahiro Yamadahw-platform-$(CONFIG_ZYNQ_CUSTOM_INIT) := custom_hw_platform 20*95b237ecSMasahiro Yamada 21*95b237ecSMasahiro Yamadainit-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\ 22*95b237ecSMasahiro Yamada $(hw-platform-y)/ps7_init_gpl.o) 23*95b237ecSMasahiro Yamada 24*95b237ecSMasahiro Yamadaifeq ($(init-objs),) 25*95b237ecSMasahiro Yamadaifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),) 26*95b237ecSMasahiro Yamadainit-objs := ps7_init_gpl.o 27*95b237ecSMasahiro Yamada$(if $(CONFIG_SPL_BUILD),\ 28*95b237ecSMasahiro Yamada$(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custome_hw_platform/)) 29*95b237ecSMasahiro Yamadaendif 30*95b237ecSMasahiro Yamadaendif 31*95b237ecSMasahiro Yamada 32*95b237ecSMasahiro 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 37*95b237ecSMasahiro Yamada# To include xil_io.h 38*95b237ecSMasahiro YamadaCFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src) 39*95b237ecSMasahiro 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