Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # (C) Copyright 2000-2006
  3. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. #
  5. # SPDX-License-Identifier: GPL-2.0+
  6. #
  7. obj-y := board.o
  8. # Copied from Xilinx SDK 2014.4
  9. hw-platform-$(CONFIG_TARGET_ZYNQ_ZED) := zed_hw_platform
  10. hw-platform-$(CONFIG_TARGET_ZYNQ_MICROZED) := MicroZed_hw_platform
  11. hw-platform-$(CONFIG_TARGET_ZYNQ_ZC702) := ZC702_hw_platform
  12. hw-platform-$(CONFIG_TARGET_ZYNQ_ZC706) := ZC706_hw_platform
  13. hw-platform-$(CONFIG_TARGET_ZYNQ_ZYBO) := zybo_hw_platform
  14. # If you want to use customized ps7_init_gpl.c/h,
  15. # enable CONFIG_ZYNQ_CUSTOM_INIT and put them into custom_hw_platform/.
  16. # This line must be placed at the bottom of the list because
  17. # it takes precedence over the default ones.
  18. hw-platform-$(CONFIG_ZYNQ_CUSTOM_INIT) := custom_hw_platform
  19. init-objs := $(if $(wildcard $(srctree)/$(src)/$(hw-platform-y)/ps7_init_gpl.c),\
  20. $(hw-platform-y)/ps7_init_gpl.o)
  21. ifeq ($(init-objs),)
  22. ifneq ($(wildcard $(srctree)/$(src)/ps7_init_gpl.c),)
  23. init-objs := ps7_init_gpl.o
  24. $(if $(CONFIG_SPL_BUILD),\
  25. $(warning Put custom ps7_init_gpl.c/h to board/xilinx/zynq/custom_hw_platform/))
  26. endif
  27. endif
  28. obj-$(CONFIG_SPL_BUILD) += $(init-objs)
  29. # Suppress "warning: function declaration isn't a prototype"
  30. CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes
  31. # To include xil_io.h
  32. CFLAGS_ps7_init_gpl.o := -I$(srctree)/$(src)