objects.mk 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #
  2. # SPDX-License-Identifier: BSD-2-Clause
  3. #
  4. # Copyright (c) 2019 Western Digital Corporation or its affiliates.
  5. #
  6. # Compiler pre-processor flags
  7. platform-cppflags-y =
  8. # C Compiler and assembler flags.
  9. platform-cflags-y =
  10. platform-asflags-y =
  11. # Linker flags: additional libraries and object files that the platform
  12. # code needs can be added here
  13. platform-ldflags-y =
  14. #
  15. # Command for platform specific "make run"
  16. # Useful for development and debugging on plaftform simulator (such as QEMU)
  17. #
  18. # platform-runcmd = your_platform_run.sh
  19. #
  20. # Platform RISC-V XLEN, ABI, ISA and Code Model configuration.
  21. # These are optional parameters but platforms can optionaly provide it.
  22. # Some of these are guessed based on GCC compiler capabilities
  23. #
  24. # PLATFORM_RISCV_XLEN = 64
  25. # PLATFORM_RISCV_ABI = lp64
  26. # PLATFORM_RISCV_ISA = rv64imafdc
  27. # PLATFORM_RISCV_CODE_MODEL = medany
  28. # Space separated list of object file names to be compiled for the platform
  29. platform-objs-y += platform.o
  30. #
  31. # If the platform support requires a builtin device tree file, the name of
  32. # the device tree compiled file should be specified here. The device tree
  33. # source file be in the form <dt file name>.dts
  34. #
  35. # platform-objs-y += <dt file name>.o
  36. # Firmware load address configuration. This is mandatory.
  37. FW_TEXT_START=0x80000000
  38. # Optional parameter for path to external FDT
  39. # FW_FDT_PATH="path to platform flattened device tree file"
  40. #
  41. # Dynamic firmware configuration.
  42. # Optional parameters are commented out. Uncomment and define these parameters
  43. # as needed.
  44. #
  45. FW_DYNAMIC=<y|n>
  46. #
  47. # Jump firmware configuration.
  48. # Optional parameters are commented out. Uncomment and define these parameters
  49. # as needed.
  50. #
  51. FW_JUMP=<y|n>
  52. # This needs to be 4MB aligned for 32-bit support
  53. # This needs to be 2MB aligned for 64-bit support
  54. # ifeq ($(PLATFORM_RISCV_XLEN), 32)
  55. # FW_JUMP_ADDR=0x80400000
  56. # else
  57. # FW_JUMP_ADDR=0x80200000
  58. # endif
  59. # FW_JUMP_FDT_ADDR=0x82200000
  60. #
  61. # Firmware with payload configuration.
  62. # Optional parameters are commented out. Uncomment and define these parameters
  63. # as needed.
  64. #
  65. FW_PAYLOAD=<y|n>
  66. # This needs to be 4MB aligned for 32-bit support
  67. # This needs to be 2MB aligned for 64-bit support
  68. ifeq ($(PLATFORM_RISCV_XLEN), 32)
  69. FW_PAYLOAD_OFFSET=0x400000
  70. else
  71. FW_PAYLOAD_OFFSET=0x200000
  72. endif
  73. # FW_PAYLOAD_ALIGN=0x1000
  74. # FW_PAYLOAD_PATH="path to next boot stage binary image file"
  75. # FW_PAYLOAD_FDT_ADDR=0x82200000