[Buildroot] [PATCH 1/4] package/efl: add OpenGL/OpenGLES support
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sat Sep 17 16:59:47 UTC 2016
Hello,
On Wed, 7 Sep 2016 23:08:40 +0200, Romain Naour wrote:
> +choice
> + bool "OpenGL support"
> + default BR2_PACKAGE_EFL_OPENGL if BR2_PACKAGE_HAS_LIBGL && BR2_PACKAGE_XORG7
> + default BR2_PACKAGE_EFL_OPENGLES if BR2_PACKAGE_HAS_LIBEGL && BR2_PACKAGE_HAS_LIBGLES
Those defaults are not really needed, and they are not great as they
duplicate the dependencies of the options.
Instead, I've moved the "none" choice at the end, and just relied on
kconfig's behavior that consists in automatically selecting the first
choice that has its dependencies met.
> +ifeq ($(BR2_PACKAGE_EFL_OPENGL),y)
> +EFL_CONF_OPTS += --with-opengl=full
> +EFL_DEPENDENCIES += libgl
> +endif
> +
> +# OpenGL ES requires EGL
> +ifeq ($(BR2_PACKAGE_EFL_OPENGLES),y)
> +EFL_CONF_OPTS += --with-opengl=es --enable-egl
> +EFL_DEPENDENCIES += libegl libgles
> +endif
> +
> +ifeq ($(BR2_PACKAGE_EFL_OPENGL_NONE),y)
> +EFL_CONF_OPTS += --with-opengl=none
> +endif
Since they are mutually exclusive, I've changed this by a:
ifeq ...
...
else ifeq ...
...
else ifeq ...
...
endif
block.
Applied with those changes. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
More information about the buildroot
mailing list