Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # SPDX-License-Identifier: GPL-2.0+
  2. #
  3. # (C) Copyright 2000-2003
  4. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  5. #
  6. # Copyright (C) 2012-2017 Altera Corporation <www.altera.com>
  7. obj-y += board.o
  8. obj-y += clock_manager.o
  9. obj-y += misc.o
  10. ifdef CONFIG_TARGET_SOCFPGA_GEN5
  11. obj-y += clock_manager_gen5.o
  12. obj-y += misc_gen5.o
  13. obj-y += reset_manager_gen5.o
  14. obj-y += scan_manager.o
  15. obj-y += system_manager_gen5.o
  16. obj-y += timer.o
  17. obj-y += wrap_pll_config.o
  18. obj-y += fpga_manager.o
  19. endif
  20. ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
  21. obj-y += clock_manager_arria10.o
  22. obj-y += misc_arria10.o
  23. obj-y += pinmux_arria10.o
  24. obj-y += reset_manager_arria10.o
  25. endif
  26. ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
  27. obj-y += clock_manager_s10.o
  28. obj-y += lowlevel_init_soc64.o
  29. obj-y += mailbox_s10.o
  30. obj-y += misc_s10.o
  31. obj-y += mmu-arm64_s10.o
  32. obj-y += reset_manager_s10.o
  33. obj-y += system_manager_s10.o
  34. obj-y += timer_s10.o
  35. obj-y += wrap_pinmux_config_s10.o
  36. obj-y += wrap_pll_config_s10.o
  37. endif
  38. ifdef CONFIG_TARGET_SOCFPGA_AGILEX
  39. obj-y += clock_manager_agilex.o
  40. obj-y += lowlevel_init_soc64.o
  41. obj-y += mailbox_s10.o
  42. obj-y += misc_s10.o
  43. obj-y += mmu-arm64_s10.o
  44. obj-y += reset_manager_s10.o
  45. obj-y += system_manager_s10.o
  46. obj-y += timer_s10.o
  47. obj-y += wrap_pinmux_config_s10.o
  48. obj-y += wrap_pll_config_s10.o
  49. endif
  50. ifdef CONFIG_SPL_BUILD
  51. ifdef CONFIG_TARGET_SOCFPGA_GEN5
  52. obj-y += spl_gen5.o
  53. obj-y += freeze_controller.o
  54. obj-y += wrap_iocsr_config.o
  55. obj-y += wrap_pinmux_config.o
  56. obj-y += wrap_sdram_config.o
  57. endif
  58. ifdef CONFIG_TARGET_SOCFPGA_ARRIA10
  59. obj-y += spl_a10.o
  60. endif
  61. ifdef CONFIG_TARGET_SOCFPGA_STRATIX10
  62. obj-y += firewall.o
  63. obj-y += spl_s10.o
  64. endif
  65. ifdef CONFIG_TARGET_SOCFPGA_AGILEX
  66. obj-y += firewall.o
  67. obj-y += spl_agilex.o
  68. endif
  69. else
  70. obj-$(CONFIG_SPL_ATF) += secure_reg_helper.o
  71. obj-$(CONFIG_SPL_ATF) += smc_api.o
  72. endif
  73. ifdef CONFIG_TARGET_SOCFPGA_GEN5
  74. # QTS-generated config file wrappers
  75. CFLAGS_wrap_iocsr_config.o += -I$(srctree)/board/$(BOARDDIR)
  76. CFLAGS_wrap_pinmux_config.o += -I$(srctree)/board/$(BOARDDIR)
  77. CFLAGS_wrap_pll_config.o += -I$(srctree)/board/$(BOARDDIR)
  78. CFLAGS_wrap_sdram_config.o += -I$(srctree)/board/$(BOARDDIR)
  79. endif