Home | History | Annotate | Download | only in zynq
      1 # SPDX-License-Identifier: GPL-2.0+
      2 #
      3 # (C) Copyright 2000-2006
      4 # Wolfgang Denk, DENX Software Engineering, wd (at] denx.de.
      5 
      6 obj-y	:= board.o
      7 
      8 hw-platform-y :=$(shell echo $(CONFIG_DEFAULT_DEVICE_TREE))
      9 
     10 init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
     11 	$(hw-platform-y)/ps7_init_gpl.o)
     12 
     13 ifeq ($(init-objs),)
     14 ifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),)
     15 init-objs := ps7_init_gpl.o
     16 $(if $(CONFIG_SPL_BUILD),\
     17 $(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/))
     18 endif
     19 endif
     20 
     21 obj-$(CONFIG_SPL_BUILD) += $(init-objs)
     22 
     23 # Suppress "warning: function declaration isn't a prototype"
     24 CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes
     25 
     26 # To include xil_io.h
     27 CFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src)
     28