freedom-u540.conf 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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/riscv/tune-riscv.inc
  6. MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
  7. KERNEL_IMAGETYPE = "Image"
  8. PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
  9. EXTRA_IMAGEDEPENDS += "opensbi"
  10. RISCV_SBI_PLAT = "sifive/fu540"
  11. ## When we have u-boot SD/MMC load support we can swap to
  12. ## u-boot being the defual. Until then it's an option for TFTP boot
  13. # RISCV_SBI_PAYLOAD ?= "u-boot.bin"
  14. ## This will set the kernel as the OpenSBI payload
  15. RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin"
  16. ## Override the DTB from the firmware with this one from openSBI
  17. ## Use this to add Microsemi Expansion board support
  18. # RISCV_SBI_FDT ?= "HiFiveUnleashed-MicroSemi-Expansion.dtb"
  19. SERIAL_CONSOLES = "115200;ttySIF0"
  20. MACHINE_EXTRA_RRECOMMENDS += " kernel-modules"
  21. IMAGE_FSTYPES_append = " wic.gz ext4"
  22. KERNEL_IMAGETYPES += "uImage"
  23. KEEPUIMAGE = "no"
  24. ## Do not update fstab file when using wic images
  25. WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
  26. EXTRA_IMAGEDEPENDS += "u-boot"
  27. UBOOT_MACHINE = "sifive_fu540_defconfig"
  28. UBOOT_ENTRYPOINT = "0x80200000"
  29. ## Set this to "tftp-boot" to generate a boot.scr file which should
  30. ## be included in the TFTP directory. It will contain the commands to
  31. ## autoboot Linux from u-boot.
  32. UBOOT_ENV ?= "tftp-boot"
  33. ## wic default support
  34. WKS_FILE_DEPENDS ?= " \
  35. opensbi \
  36. e2fsprogs-native \
  37. bmap-tools-native \
  38. "
  39. IMAGE_BOOT_FILES ?= " \
  40. Image \
  41. uImage \
  42. boot.scr.uimg \
  43. "
  44. WKS_FILE ?= "freedom-u540-opensbi.wks"
  45. BAD_RECOMMENDATIONS += "\
  46. libcxx-dev \
  47. libcxx-staticdev \
  48. compiler-rt-dev \
  49. compiler-rt-staticdev \
  50. "
  51. ASSUME_PROVIDED += "\
  52. libcxx-dev \
  53. libcxx-staticdev \
  54. compiler-rt-dev \
  55. compiler-rt-staticdev \
  56. "