1config BR2_PACKAGE_SUNXI_MALI_UTGARD 2 bool "sunxi-mali-utgard" 3 depends on BR2_aarch64 || (BR2_ARM_EABIHF && BR2_arm) 4 depends on BR2_TOOLCHAIN_USES_GLIBC 5 select BR2_PACKAGE_HAS_LIBEGL 6 select BR2_PACKAGE_HAS_LIBGLES 7 help 8 Install userspace Allwinner OpenGL libraries for Mali 9 Utgard GPUs. 10 11 https://github.com/bootlin/mali-blobs 12 13if BR2_PACKAGE_SUNXI_MALI_UTGARD 14 15config BR2_PACKAGE_PROVIDES_LIBEGL 16 default "sunxi-mali-utgard" 17 18config BR2_PACKAGE_PROVIDES_LIBGLES 19 default "sunxi-mali-utgard" 20 21config BR2_PACKAGE_PROVIDES_LIBGBM 22 default "sunxi-mali-utgard" if BR2_PACKAGE_SUNXI_MALI_UTGARD_WAYLAND 23 24choice 25 prompt "Version" 26 default BR2_PACKAGE_SUNXI_MALI_UTGARD_R6P2 if BR2_PACKAGE_SUNXI_MALI_MAINLINE_R6P2 # legacy 27 default BR2_PACKAGE_SUNXI_MALI_UTGARD_R8P1 if BR2_PACKAGE_SUNXI_MALI_MAINLINE_R8P1 # legacy 28 default BR2_PACKAGE_SUNXI_MALI_UTGARD_R6P2 29 help 30 Select the version of the userspace module. 31 32config BR2_PACKAGE_SUNXI_MALI_UTGARD_R6P2 33 bool "r6p2" 34config BR2_PACKAGE_SUNXI_MALI_UTGARD_R8P1 35 bool "r8p1" 36 37endchoice 38 39config BR2_PACKAGE_SUNXI_MALI_UTGARD_REVISION 40 string 41 default "r6p2" if BR2_PACKAGE_SUNXI_MALI_UTGARD_R6P2 42 default "r8p1" if BR2_PACKAGE_SUNXI_MALI_UTGARD_R8P1 43 44choice 45 prompt "Platform" 46 default BR2_PACKAGE_SUNXI_MALI_UTGARD_FBDEV 47 help 48 Select the target EGL platform. 49 50config BR2_PACKAGE_SUNXI_MALI_UTGARD_FBDEV 51 bool "fbdev" 52 53config BR2_PACKAGE_SUNXI_MALI_UTGARD_WAYLAND 54 bool "wayland" 55 depends on BR2_PACKAGE_SUNXI_MALI_UTGARD_R6P2 56 select BR2_PACKAGE_HAS_LIBEGL_WAYLAND 57 select BR2_PACKAGE_HAS_LIBGBM 58 select BR2_PACKAGE_WAYLAND 59 60comment "wayland support requires version r6p2" 61 depends on !BR2_PACKAGE_SUNXI_MALI_UTGARD_R6P2 62 63endchoice 64 65config BR2_PACKAGE_SUNXI_MALI_UTGARD_PLATFORM 66 string 67 default "fbdev" if BR2_PACKAGE_SUNXI_MALI_UTGARD_FBDEV 68 default "wayland" if BR2_PACKAGE_SUNXI_MALI_UTGARD_WAYLAND 69 70endif 71 72comment "sunxi-mali-utgard needs an EABIhf glibc toolchain" 73 depends on BR2_arm 74 depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_ARM_EABIHF 75