objects.mk 885 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # SPDX-License-Identifier: BSD-2-Clause
  3. #
  4. # Copyright (c) 2020 Western Digital Corporation or its affiliates.
  5. #
  6. # Compiler flags
  7. platform-cppflags-y =
  8. platform-cflags-y =
  9. platform-asflags-y =
  10. platform-ldflags-y =
  11. # Objects to build
  12. platform-objs-y += platform.o
  13. PLATFORM_RISCV_XLEN = 64
  14. # Blobs to build
  15. FW_TEXT_START=0x80000000
  16. FW_JUMP=n
  17. ifeq ($(PLATFORM_RISCV_XLEN), 32)
  18. # This needs to be 4MB aligned for 32-bit support
  19. FW_JUMP_ADDR=0x80400000
  20. else
  21. # This needs to be 2MB aligned for 64-bit support
  22. FW_JUMP_ADDR=0x80200000
  23. endif
  24. FW_JUMP_FDT_ADDR=0x82200000
  25. # Firmware with payload configuration.
  26. FW_PAYLOAD=y
  27. ifeq ($(PLATFORM_RISCV_XLEN), 32)
  28. # This needs to be 4MB aligned for 32-bit support
  29. FW_PAYLOAD_OFFSET=0x400000
  30. else
  31. # This needs to be 2MB aligned for 64-bit support
  32. FW_PAYLOAD_OFFSET=0x200000
  33. endif
  34. FW_PAYLOAD_FDT_ADDR=0x82200000
  35. FW_PAYLOAD_ALIGN=0x1000