freedom-u540.conf 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #@TYPE: Machine
  2. #@NAME: freedom-u540
  3. #@SOC: Freedom U540
  4. #@DESCRIPTION: Machine configuration for the HiFive Unleashed development board
  5. require conf/machine/include/tune-riscv.inc
  6. MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
  7. KERNEL_IMAGETYPE = "Image"
  8. PREFERRED_PROVIDER_virtual/kernel ?= "linux-riscv"
  9. GDBVERSION = "riscv"
  10. EXTRA_IMAGEDEPENDS += "opensbi"
  11. RISCV_SBI_PLAT = "sifive/fu540"
  12. # When we have u-boot SD/MMC load support we can swap to
  13. # u-boot being the defual. Until then it's an option for TFTP boot
  14. # RISCV_SBI_PAYLOAD ?= "u-boot.bin"
  15. # This will set the kernel as the OpenSBI payload
  16. RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin"
  17. # Override the DTB from the firmware with this one from openSBI
  18. # Use this to add Microsemi Expansion board support
  19. # RISCV_SBI_FDT ?= "HiFiveUnleashed-MicroSemi-Expansion.dtb"
  20. SERIAL_CONSOLES = "115200;ttySIF0"
  21. MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
  22. IMAGE_FSTYPES_append = " wic.gz ext4"
  23. KERNEL_IMAGETYPES += "uImage"
  24. KEEPUIMAGE = "no"
  25. # Do not update fstab file when using wic images
  26. WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
  27. EXTRA_IMAGEDEPENDS += "u-boot"
  28. UBOOT_MACHINE = "sifive_fu540_defconfig"
  29. ### wic default support
  30. WKS_FILE_DEPENDS ?= " \
  31. opensbi \
  32. e2fsprogs-native \
  33. bmap-tools-native \
  34. "
  35. IMAGE_BOOT_FILES ?= " \
  36. Image \
  37. uImage \
  38. "
  39. WKS_FILE ?= "freedom-u540-opensbi.wks"
  40. BAD_RECOMMENDATIONS += "\
  41. libcxx-dev \
  42. libcxx-staticdev \
  43. compiler-rt-dev \
  44. compiler-rt-staticdev \
  45. "
  46. ASSUME_PROVIDED += "\
  47. libcxx-dev \
  48. libcxx-staticdev \
  49. compiler-rt-dev \
  50. compiler-rt-staticdev \
  51. "