package/libopenmax: rename the _HAS and _PROVIDES variables

The basic rule for a package is to have its options named
after the package name. There is no reason this should not
also be the case for virtual packages.

Besides, this will allow us to switch libopenmax to use the
soon-to-be-introduced virtual-package infrastructure.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Thomas De Schampheleire <patrickdepinguin@gmail.com>
Cc: Mike Zick <minimod@morethan.org>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Yann E. MORIN 2014-04-05 17:21:40 +02:00 committed by Thomas Petazzoni
parent 2bb9df30ad
commit caae18405d
5 changed files with 11 additions and 11 deletions

View File

@ -3,7 +3,7 @@ config BR2_PACKAGE_BELLAGIO
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_PREFER_STATIC_LIB depends on !BR2_PREFER_STATIC_LIB
select BR2_PACKAGE_HAS_OPENMAX select BR2_PACKAGE_HAS_LIBOPENMAX
help help
Bellagio is an opensource implementation of the Bellagio is an opensource implementation of the
OpenMAX IL API. OpenMAX IL API.
@ -19,7 +19,7 @@ config BR2_PACKAGE_BELLAGIO
if BR2_PACKAGE_BELLAGIO if BR2_PACKAGE_BELLAGIO
config BR2_PACKAGE_PROVIDES_OPENMAX config BR2_PACKAGE_PROVIDES_LIBOPENMAX
default "bellagio" default "bellagio"
endif endif

View File

@ -1,6 +1,6 @@
config BR2_PACKAGE_GST_OMX config BR2_PACKAGE_GST_OMX
bool "gst-omx" bool "gst-omx"
depends on BR2_PACKAGE_HAS_OPENMAX depends on BR2_PACKAGE_HAS_LIBOPENMAX
select BR2_PACKAGE_GST1_PLUGINS_BASE select BR2_PACKAGE_GST1_PLUGINS_BASE
help help
GStreamer plug-in to use OpenMAX API. GStreamer plug-in to use OpenMAX API.
@ -8,4 +8,4 @@ config BR2_PACKAGE_GST_OMX
http://cgit.freedesktop.org/gstreamer/gst-omx http://cgit.freedesktop.org/gstreamer/gst-omx
comment "gst-omx requires a OpenMAX implementation" comment "gst-omx requires a OpenMAX implementation"
depends on !BR2_PACKAGE_HAS_OPENMAX depends on !BR2_PACKAGE_HAS_LIBOPENMAX

View File

@ -1,6 +1,6 @@
config BR2_PACKAGE_HAS_OPENMAX config BR2_PACKAGE_HAS_LIBOPENMAX
bool bool
config BR2_PACKAGE_PROVIDES_OPENMAX config BR2_PACKAGE_PROVIDES_LIBOPENMAX
depends on BR2_PACKAGE_HAS_OPENMAX depends on BR2_PACKAGE_HAS_LIBOPENMAX
string string

View File

@ -5,9 +5,9 @@
################################################################################ ################################################################################
LIBOPENMAX_SOURCE = LIBOPENMAX_SOURCE =
LIBOPENMAX_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_OPENMAX)) LIBOPENMAX_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_LIBOPENMAX))
ifeq ($(BR2_PACKAGE_HAS_OPENMAX),y) ifeq ($(BR2_PACKAGE_HAS_LIBOPENMAX),y)
ifeq ($(LIBOPENMAX_DEPENDENCIES),) ifeq ($(LIBOPENMAX_DEPENDENCIES),)
$(error No libopenmax implementation selected. Configuration error.) $(error No libopenmax implementation selected. Configuration error.)
endif endif

View File

@ -7,7 +7,7 @@ config BR2_PACKAGE_RPI_USERLAND
select BR2_PACKAGE_HAS_LIBEGL select BR2_PACKAGE_HAS_LIBEGL
select BR2_PACKAGE_HAS_LIBGLES select BR2_PACKAGE_HAS_LIBGLES
select BR2_PACKAGE_HAS_OPENVG select BR2_PACKAGE_HAS_OPENVG
select BR2_PACKAGE_HAS_OPENMAX select BR2_PACKAGE_HAS_LIBOPENMAX
help help
Raspberry Pi Userland contains the necessary library to use the Raspberry Pi Userland contains the necessary library to use the
VideoCore driver. VideoCore driver.
@ -28,7 +28,7 @@ config BR2_PACKAGE_PROVIDES_LIBGLES
config BR2_PACKAGE_PROVIDES_OPENVG config BR2_PACKAGE_PROVIDES_OPENVG
default "rpi-userland" default "rpi-userland"
config BR2_PACKAGE_PROVIDES_OPENMAX config BR2_PACKAGE_PROVIDES_LIBOPENMAX
default "rpi-userland" default "rpi-userland"
endif endif