buildrootschalter/package/sunxi-mali/Config.in
Yann E. MORIN 2c33417c9e package/opengl/libegl: switch to package-defined providers
It seems weird that the libegl package has to know all of the packages
that may provide the EGL implementation.

This also breaks implementation provided by packages in BR2_EXTERNAL,
since we can't easily depend on the order of packages before we can
derive the dependencies of libegl.

So, Arnout and I separately came up to the same conclusion: move the
dependency selection from out of libegl, and into each of the packages
that provides an EGL implementation. Here it is.

Since we no longer depend on the order packages are included, but on
values set at Kconfig-time, we can now have EGL providers in BR2_EXTERNAL.

Reported-by: David Corvoysier <david.corvoysier@orange.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2013-12-25 18:20:42 +01:00

66 lines
1.7 KiB
Plaintext

config BR2_PACKAGE_SUNXI_MALI
bool "sunxi-mali"
select BR2_PACKAGE_HAS_OPENGL_EGL
select BR2_PACKAGE_HAS_OPENGL_ES
# The egl/gles mali libraries are provided as a git submodule of the
# sunxi-mali repo and are downloaded by the sunxi-mali-prop package.
select BR2_PACKAGE_SUNXI_MALI_PROP
depends on BR2_TOOLCHAIN_USES_GLIBC
depends on BR2_arm
help
Install the ARM Mali drivers for sunxi based systems (i.e
systems based on ARM Allwinner SoCs). This driver requires
either the sunxi-kernel with the ARM Mali driver enabled or
the installation of the ARM Mali drivers as an external
module.
http://github.com/linux-sunxi/sunxi-mali
if BR2_PACKAGE_SUNXI_MALI
config BR2_PACKAGE_PROVIDES_OPENGL_EGL
default "sunxi-mali"
config BR2_PACKAGE_SUNXI_MALI_DBG
bool "install malitest and maliver tools"
help
Install 3D triangle demo malitest application and the maliver application
which describes the kernel module version.
choice
prompt "Version"
default BR2_PACKAGE_SUNXI_MALI_R3P0
help
Select the version of the kernel module. For the sunxi-kernel, the
appropriate version number is r3p0. For other kernels, use the maliver
application to determine the appropriate version.
config BR2_PACKAGE_SUNXI_MALI_R2P4
bool "r2p4"
depends on BR2_ARM_EABI
comment "r2p4 requires an EABI toolchain"
depends on !BR2_ARM_EABI
config BR2_PACKAGE_SUNXI_MALI_R3P0
bool "r3p0"
depends on BR2_ARM_EABIHF
comment "r3p0 requires an EABIhf toolchain"
depends on !BR2_ARM_EABIHF
config BR2_PACKAGE_SUNXI_MALI_R3P1
depends on BR2_ARM_EABIHF
bool "r3p1"
comment "r3p1 requires an EABIhf toolchain"
depends on !BR2_ARM_EABIHF
endchoice
endif
comment "sunxi-mali needs an (e)glibc toolchain"
depends on BR2_arm
depends on !BR2_TOOLCHAIN_USES_GLIBC