freedom-u540.conf 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. ## This sets u-boot as the default OpenSBI payload
  12. RISCV_SBI_PAYLOAD ?= "u-boot.bin"
  13. ## This will set the kernel as the OpenSBI payload. This is not recommended,
  14. ## you can use U-Boot's MMC loading instead.
  15. # RISCV_SBI_PAYLOAD ?= "${KERNEL_IMAGETYPE}-${MACHINE}.bin"
  16. RISCV_SBI_FDT ?= "hifive-unleashed-a00.dtb"
  17. ## Use this to add Microsemi Expansion board support
  18. # RISCV_SBI_FDT ?= "hifive-unleashed-a00-microsemi.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 "mmc-boot" to generate a boot.scr file which should be included
  30. ## in the boot partition. It will try to load a kernel image by TFTP and if that
  31. ## fails it will fall back to local images in the boot partition.
  32. UBOOT_ENV ?= "mmc-boot"
  33. ## wic default support
  34. WKS_FILE_DEPENDS ?= " \
  35. opensbi \
  36. e2fsprogs-native \
  37. bmap-tools-native \
  38. "
  39. IMAGE_BOOT_FILES ?= " \
  40. fw_payload.bin \
  41. Image \
  42. uImage \
  43. boot.scr.uimg \
  44. ${RISCV_SBI_FDT} \
  45. "
  46. WKS_FILE ?= "freedom-u540-opensbi.wks"
  47. BAD_RECOMMENDATIONS += "\
  48. libcxx-dev \
  49. libcxx-staticdev \
  50. compiler-rt-dev \
  51. compiler-rt-staticdev \
  52. "
  53. ASSUME_PROVIDED += "\
  54. libcxx-dev \
  55. libcxx-staticdev \
  56. compiler-rt-dev \
  57. compiler-rt-staticdev \
  58. "