thead-base.inc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. require conf/machine/include/riscv/tune-riscv.inc
  2. EXTERNAL_TOOLCHAIN ?= "${HOME}/.thead/riscv64-linux"
  3. TCMODE="external"
  4. TARGET_PREFIX="riscv64-linux-gnu-"
  5. TARGET_ARCH="riscv64"
  6. TARGET_OS="linux"
  7. EXTERNAL_TOOLCHAIN_SYSROOT="${EXTERNAL_TOOLCHAIN}/riscv64-buildroot-linux-gnu/sysroot"
  8. INSANE_SKIP_${PN} += "glibc-so gobject-introspection-so glibc-external"
  9. PREFERRED_PROVIDER_virtual/kernel ?= "linux-thead"
  10. PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
  11. PREFERRED_VERSION_openocd-native = "riscv"
  12. PREFERRED_VERSION_openocd = "riscv"
  13. # KERNEL_CLASSES = "kernel-uimage"
  14. # KERNEL_IMAGETYPES = "itbImage"
  15. KERNEL_IMAGETYPE = "Image"
  16. # MACHINE_FEATURES = "usbgadget usbhost vfat alsa touchscreen"
  17. MACHINE_FEATURES = "screen keyboard ext2 ext3 serial"
  18. ## This sets u-boot as the default OpenSBI payload
  19. RISCV_SBI_PAYLOAD ?= "u-boot.bin"
  20. EXTRA_IMAGEDEPENDS += "opensbi"
  21. RISCV_SBI_PLAT = "thead/c910"
  22. EXTRA_IMAGEDEPENDS += "u-boot"
  23. UBOOT_MACHINE = "qemu-riscv64_defconfig"
  24. ## Do not update fstab file when using wic images
  25. WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
  26. ## wic default support
  27. WKS_FILE_DEPENDS ?= " \
  28. opensbi \
  29. e2fsprogs-native \
  30. bmap-tools-native \
  31. "
  32. IMAGE_BOOT_FILES ?= " \
  33. fw_payload.bin \
  34. fitImage \
  35. boot.scr.uimg \
  36. "
  37. WKS_FILE ?= "xuantie-opensbi.wks"
  38. BAD_RECOMMENDATIONS += "\
  39. libcxx-dev \
  40. libcxx-staticdev \
  41. compiler-rt-dev \
  42. compiler-rt-staticdev \
  43. "
  44. ASSUME_PROVIDED += "\
  45. libcxx-dev \
  46. libcxx-staticdev \
  47. compiler-rt-dev \
  48. compiler-rt-staticdev \
  49. "