objects.mk 903 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # SPDX-License-Identifier: BSD-2-Clause
  3. #
  4. # Copyright (C) 2019 FORTH-ICS/CARV
  5. # Panagiotis Peristerakis <perister@ics.forth.gr>
  6. #
  7. # Compiler flags
  8. platform-cppflags-y =
  9. platform-cflags-y =
  10. platform-asflags-y =
  11. platform-ldflags-y =
  12. # Object to build
  13. platform-objs-y += platform.o
  14. PLATFORM_RISCV_XLEN = 64
  15. # Blobs to build
  16. FW_TEXT_START=0x80000000
  17. FW_JUMP=n
  18. ifeq ($(PLATFORM_RISCV_XLEN), 32)
  19. # This needs to be 4MB aligned for 32-bit support
  20. FW_JUMP_ADDR=0x80400000
  21. else
  22. # This needs to be 2MB aligned for 64-bit support
  23. FW_JUMP_ADDR=0x80200000
  24. endif
  25. FW_JUMP_FDT_ADDR=0x82200000
  26. # Firmware with payload configuration.
  27. FW_PAYLOAD=y
  28. ifeq ($(PLATFORM_RISCV_XLEN), 32)
  29. # This needs to be 4MB aligned for 32-bit support
  30. FW_PAYLOAD_OFFSET=0x400000
  31. else
  32. # This needs to be 2MB aligned for 64-bit support
  33. FW_PAYLOAD_OFFSET=0x200000
  34. endif
  35. FW_PAYLOAD_FDT_ADDR=0x82200000
  36. FW_PAYLOAD_ALIGN=0x1000