config.mk 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. # Firmware load address configuration. This is mandatory.
  29. FW_TEXT_START=0x80000000
  30. # Optional parameter for path to external FDT
  31. # FW_FDT_PATH="path to platform flattened device tree file"
  32. #
  33. # Dynamic firmware configuration.
  34. # Optional parameters are commented out. Uncomment and define these parameters
  35. # as needed.
  36. #
  37. FW_DYNAMIC=<y|n>
  38. #
  39. # Jump firmware configuration.
  40. # Optional parameters are commented out. Uncomment and define these parameters
  41. # as needed.
  42. #
  43. FW_JUMP=<y|n>
  44. # This needs to be 4MB aligned for 32-bit support
  45. # This needs to be 2MB aligned for 64-bit support
  46. # ifeq ($(PLATFORM_RISCV_XLEN), 32)
  47. # FW_JUMP_ADDR=0x80400000
  48. # else
  49. # FW_JUMP_ADDR=0x80200000
  50. # endif
  51. # FW_JUMP_FDT_ADDR=0x82200000
  52. #
  53. # Firmware with payload configuration.
  54. # Optional parameters are commented out. Uncomment and define these parameters
  55. # as needed.
  56. #
  57. FW_PAYLOAD=<y|n>
  58. # This needs to be 4MB aligned for 32-bit support
  59. # This needs to be 2MB aligned for 64-bit support
  60. ifeq ($(PLATFORM_RISCV_XLEN), 32)
  61. FW_PAYLOAD_OFFSET=0x400000
  62. else
  63. FW_PAYLOAD_OFFSET=0x200000
  64. endif
  65. # FW_PAYLOAD_ALIGN=0x1000
  66. # FW_PAYLOAD_PATH="path to next boot stage binary image file"
  67. # FW_PAYLOAD_FDT_ADDR=0x82200000