xref: /OK3568_Linux_fs/buildroot/package/freescale-imx/imx-gpu-viv/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyuncomment "imx-gpu-viv needs a glibc toolchain with armhf enabled"
2*4882a593Smuzhiyun	depends on BR2_arm
3*4882a593Smuzhiyun	depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_ARM_EABIHF
4*4882a593Smuzhiyun
5*4882a593Smuzhiyuncomment "imx-gpu-viv needs a glibc toolchain"
6*4882a593Smuzhiyun	depends on BR2_aarch64
7*4882a593Smuzhiyun	depends on !BR2_TOOLCHAIN_USES_GLIBC
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunconfig BR2_PACKAGE_IMX_GPU_VIV
10*4882a593Smuzhiyun	bool "imx-gpu-viv"
11*4882a593Smuzhiyun	# Pre-built binaries only available for ARM EABIhf
12*4882a593Smuzhiyun	depends on (BR2_arm && BR2_ARM_EABIHF) || BR2_aarch64
13*4882a593Smuzhiyun	# Library binaries are linked against libc.so.6
14*4882a593Smuzhiyun	depends on BR2_TOOLCHAIN_USES_GLIBC
15*4882a593Smuzhiyun	# Library binaries are linked against libdrm.so.2, except framebuffer
16*4882a593Smuzhiyun	# output on ARM
17*4882a593Smuzhiyun	select BR2_PACKAGE_LIBDRM if !(BR2_arm && BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB)
18*4882a593Smuzhiyun	select BR2_PACKAGE_HAS_LIBEGL
19*4882a593Smuzhiyun	select BR2_PACKAGE_HAS_LIBGLES
20*4882a593Smuzhiyun	select BR2_PACKAGE_HAS_LIBOPENCL
21*4882a593Smuzhiyun	select BR2_PACKAGE_HAS_LIBOPENVG
22*4882a593Smuzhiyun	help
23*4882a593Smuzhiyun	  Userspace libraries for Vivante GPU on i.MX platforms
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun	  It contains libraries and headers for GLES, OpenCL, and
26*4882a593Smuzhiyun	  OpenVG. It also contains a DRI plugin for X11. It also
27*4882a593Smuzhiyun	  contains a plugin for DirectFB-1.4.0, but that doesn't work
28*4882a593Smuzhiyun	  together with buildroot's DirectFB version.
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun	  This library is provided by Freescale as-is and doesn't have
31*4882a593Smuzhiyun	  an upstream.
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunif BR2_PACKAGE_IMX_GPU_VIV
34*4882a593Smuzhiyun
35*4882a593Smuzhiyunchoice
36*4882a593Smuzhiyun	prompt "Output option"
37*4882a593Smuzhiyun	help
38*4882a593Smuzhiyun	  There are two versions of this library: one for
39*4882a593Smuzhiyun	  direct framebuffer access, one for X11 rendering.
40*4882a593Smuzhiyun	  Choose here which version to install.
41*4882a593Smuzhiyun
42*4882a593Smuzhiyunconfig BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_X11
43*4882a593Smuzhiyun	bool "X11"
44*4882a593Smuzhiyun	depends on BR2_PACKAGE_XORG7
45*4882a593Smuzhiyun	# The i.MX8 blob doesn't support X11 output
46*4882a593Smuzhiyun	depends on !BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M
47*4882a593Smuzhiyun	select BR2_PACKAGE_XLIB_LIBXDAMAGE
48*4882a593Smuzhiyun	select BR2_PACKAGE_XLIB_LIBXEXT
49*4882a593Smuzhiyun	select BR2_PACKAGE_XLIB_LIBXFIXES
50*4882a593Smuzhiyun
51*4882a593Smuzhiyuncomment "X11 backend needs Xorg package"
52*4882a593Smuzhiyun	depends on !BR2_PACKAGE_XORG7
53*4882a593Smuzhiyun	depends on !BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M
54*4882a593Smuzhiyun
55*4882a593Smuzhiyunconfig BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB
56*4882a593Smuzhiyun	bool "Framebuffer"
57*4882a593Smuzhiyun	# The i.MX8 blob doesn't support FB output
58*4882a593Smuzhiyun	depends on !BR2_PACKAGE_FREESCALE_IMX_PLATFORM_IMX8M
59*4882a593Smuzhiyun
60*4882a593Smuzhiyunconfig BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL
61*4882a593Smuzhiyun	bool "Wayland"
62*4882a593Smuzhiyun	select BR2_PACKAGE_WAYLAND
63*4882a593Smuzhiyun	select BR2_PACKAGE_HAS_LIBEGL_WAYLAND
64*4882a593Smuzhiyun
65*4882a593Smuzhiyunendchoice
66*4882a593Smuzhiyun
67*4882a593Smuzhiyunconfig BR2_PACKAGE_IMX_GPU_VIV_OUTPUT
68*4882a593Smuzhiyun	string
69*4882a593Smuzhiyun	default "x11" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_X11
70*4882a593Smuzhiyun	default "fb" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_FB
71*4882a593Smuzhiyun	default "wayland" if BR2_PACKAGE_IMX_GPU_VIV_OUTPUT_WL
72*4882a593Smuzhiyun
73*4882a593Smuzhiyunconfig BR2_PACKAGE_PROVIDES_LIBEGL
74*4882a593Smuzhiyun	default "imx-gpu-viv"
75*4882a593Smuzhiyun
76*4882a593Smuzhiyunconfig BR2_PACKAGE_PROVIDES_LIBGLES
77*4882a593Smuzhiyun	default "imx-gpu-viv"
78*4882a593Smuzhiyun
79*4882a593Smuzhiyunconfig BR2_PACKAGE_PROVIDES_LIBOPENCL
80*4882a593Smuzhiyun	default "imx-gpu-viv"
81*4882a593Smuzhiyun
82*4882a593Smuzhiyunconfig BR2_PACKAGE_PROVIDES_LIBOPENVG
83*4882a593Smuzhiyun	default "imx-gpu-viv"
84*4882a593Smuzhiyun
85*4882a593Smuzhiyunconfig BR2_PACKAGE_IMX_GPU_VIV_EXAMPLES
86*4882a593Smuzhiyun	bool "install examples"
87*4882a593Smuzhiyun	# example binaries are linked against libstdc++.so.6
88*4882a593Smuzhiyun	depends on BR2_INSTALL_LIBSTDCPP
89*4882a593Smuzhiyun	help
90*4882a593Smuzhiyun	  Copy the Vivante examples to the target.
91*4882a593Smuzhiyun
92*4882a593Smuzhiyun	  Warning: examples take approximately 150 MB of disk space.
93*4882a593Smuzhiyun
94*4882a593Smuzhiyuncomment "imx-gpu-viv-examples need a toolchain w/ C++ support"
95*4882a593Smuzhiyun	depends on !BR2_INSTALL_LIBSTDCPP
96*4882a593Smuzhiyun
97*4882a593Smuzhiyunconfig BR2_PACKAGE_IMX_GPU_VIV_GMEM_INFO
98*4882a593Smuzhiyun	bool "install gmem_info tool"
99*4882a593Smuzhiyun	help
100*4882a593Smuzhiyun	  Copy the gmem_info tool to the target which provides
101*4882a593Smuzhiyun	  information about GPU memory consumption.
102*4882a593Smuzhiyun
103*4882a593Smuzhiyunendif
104