Config.in 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. comment "imx-gpu-viv needs a glibc toolchain with armhf enabled"
  2. depends on BR2_arm
  3. depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_ARM_EABIHF
  4. comment "imx-gpu-viv needs a glibc toolchain"
  5. depends on BR2_aarch64
  6. depends on !BR2_TOOLCHAIN_USES_GLIBC
  7. config BR2_PACKAGE_IMX_GPU_VIV
  8. bool "imx-gpu-viv"
  9. # Pre-built binaries only available for ARM EABIhf
  10. depends on (BR2_arm && BR2_ARM_EABIHF) || BR2_aarch64
  11. # Library binaries are linked against libc.so.6
  12. depends on BR2_TOOLCHAIN_USES_GLIBC
  13. # Library binaries are linked against libdrm.so.2, except framebuffer
  14. # output on ARM
  15. select BR2_PACKAGE_LIBDRM if !(BR2_arm && BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB)
  16. select BR2_PACKAGE_HAS_LIBEGL
  17. select BR2_PACKAGE_HAS_LIBGLES
  18. # gbm is only available in the aarch64 blobs
  19. select BR2_PACKAGE_HAS_LIBGBM if BR2_aarch64
  20. select BR2_PACKAGE_LIBGBM_HAS_FEATURE_DMA_BUF if BR2_aarch64
  21. select BR2_PACKAGE_LIBGBM_HAS_FEATURE_FORMAT_MODIFIER_PLANE_COUNT if BR2_aarch64
  22. select BR2_PACKAGE_HAS_LIBOPENCL
  23. select BR2_PACKAGE_HAS_LIBOPENVG
  24. help
  25. Userspace libraries for Vivante GPU on i.MX platforms
  26. It contains libraries and headers for GLES, OpenCL, and
  27. OpenVG. It also contains a plugin for DirectFB-1.4.0, but
  28. that doesn't work together with buildroot's DirectFB
  29. version.
  30. This library is provided by Freescale as-is and doesn't have
  31. an upstream.
  32. if BR2_PACKAGE_IMX_GPU_VIV
  33. choice
  34. prompt "Output option"
  35. help
  36. There are two versions of this library: one for
  37. direct framebuffer access, one for wayland rendering.
  38. Choose here which version to install.
  39. config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB
  40. bool "Framebuffer"
  41. # The i.MX8 aarch64 blob doesn't support FB output
  42. depends on BR2_arm
  43. config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL
  44. bool "Wayland"
  45. select BR2_PACKAGE_WAYLAND
  46. select BR2_PACKAGE_HAS_LIBEGL_WAYLAND
  47. endchoice
  48. config BR2_PACKAGE_IMX_GPU_VIV_OUTPUT
  49. string
  50. default "fb" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB
  51. default "wayland" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL
  52. config BR2_PACKAGE_PROVIDES_LIBEGL
  53. default "imx-gpu-viv"
  54. config BR2_PACKAGE_PROVIDES_LIBGLES
  55. default "imx-gpu-viv"
  56. config BR2_PACKAGE_PROVIDES_LIBOPENCL
  57. default "imx-gpu-viv"
  58. config BR2_PACKAGE_PROVIDES_LIBOPENVG
  59. default "imx-gpu-viv"
  60. if BR2_aarch64
  61. config BR2_PACKAGE_PROVIDES_LIBGBM
  62. default "imx-gpu-viv"
  63. config BR2_PACKAGE_IMX_GPU_VIV_PLATFORM
  64. string
  65. default "mx8mn" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MN
  66. default "mx8mp" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8MP
  67. default "mx8mq" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M
  68. default "mx8qm" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8
  69. default "mx8qxp" if BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8X
  70. endif
  71. config BR2_PACKAGE_IMX_GPU_VIV_EXAMPLES
  72. bool "install examples"
  73. # example binaries are linked against libstdc++.so.6
  74. depends on BR2_INSTALL_LIBSTDCPP
  75. help
  76. Copy the Vivante examples to the target.
  77. Warning: examples take approximately 150 MB of disk space.
  78. comment "imx-gpu-viv-examples need a toolchain w/ C++ support"
  79. depends on !BR2_INSTALL_LIBSTDCPP
  80. config BR2_PACKAGE_IMX_GPU_VIV_GMEM_INFO
  81. bool "install gmem_info tool"
  82. help
  83. Copy the gmem_info tool to the target which provides
  84. information about GPU memory consumption.
  85. endif