Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # SPDX-License-Identifier: GPL-2.0+
  2. #
  3. # Copyright (c) 2014 Google, Inc
  4. # We don't want the bootrom-helper present in a full U-Boot build, as
  5. # this may have entered from ATF with the stack-pointer pointing to
  6. # inaccessible/protected memory (and the bootrom-helper assumes that
  7. # the stack-pointer is valid before switching to the U-Boot stack).
  8. obj-spl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
  9. obj-spl-$(CONFIG_SPL_ROCKCHIP_COMMON_BOARD) += spl.o spl-boot-order.o
  10. obj-tpl-$(CONFIG_ROCKCHIP_BROM_HELPER) += bootrom.o
  11. obj-tpl-$(CONFIG_TPL_ROCKCHIP_COMMON_BOARD) += tpl.o
  12. obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
  13. ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
  14. # Always include boot_mode.o, as we bypass it (i.e. turn it off)
  15. # inside of boot_mode.c when CONFIG_BOOT_MODE_REG is 0. This way,
  16. # we can have the preprocessor correctly recognise both 0x0 and 0
  17. # meaning "turn it off".
  18. obj-y += boot_mode.o
  19. obj-$(CONFIG_ROCKCHIP_COMMON_BOARD) += board.o
  20. obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108-board.o
  21. endif
  22. obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
  23. obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
  24. obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
  25. ifndef CONFIG_TPL_BUILD
  26. obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
  27. endif
  28. obj-$(CONFIG_ROCKCHIP_RK322X) += rk322x/
  29. obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/
  30. obj-$(CONFIG_ROCKCHIP_RK3328) += rk3328/
  31. obj-$(CONFIG_ROCKCHIP_RK3368) += rk3368/
  32. obj-$(CONFIG_ROCKCHIP_RK3399) += rk3399/
  33. obj-$(CONFIG_ROCKCHIP_RV1108) += rv1108/
  34. # Clear out SPL objects, in case this is a TPL build
  35. obj-spl-$(CONFIG_TPL_BUILD) =
  36. # Now add SPL/TPL objects back into the main build
  37. obj-$(CONFIG_SPL_BUILD) += $(obj-spl-y)
  38. obj-$(CONFIG_TPL_BUILD) += $(obj-tpl-y)