All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 4/4] package/kodi: add optional support for gbm
Date: Mon, 3 Feb 2020 11:47:55 +0100	[thread overview]
Message-ID: <20200203114755.607fdb4a@windsurf> (raw)
In-Reply-To: <20200202173333.305860-4-bernd.kuhls@t-online.de>

Hello Bernd,

On Sun,  2 Feb 2020 18:33:33 +0100
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:

> For details see upstream PR 11955.
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v2: removed dependency on BR2_ENABLE_LOCALE
> 
>  package/kodi/Config.in | 43 +++++++++++++++++++++++++++++++++++++++++-
>  package/kodi/kodi.mk   | 14 ++++++++++++++
>  2 files changed, 56 insertions(+), 1 deletion(-)
> 
> diff --git a/package/kodi/Config.in b/package/kodi/Config.in
> index 0f2f4e2df2..f8b95c2234 100644
> --- a/package/kodi/Config.in
> +++ b/package/kodi/Config.in
> @@ -17,6 +17,23 @@ comment "kodi needs python w/ .py modules, a uClibc or glibc toolchain w/ C++, t
>  config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
>  	bool
>  
> +config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM_GL
> +	bool
> +	default y
> +	depends on BR2_PACKAGE_HAS_LIBGL
> +	depends on BR2_PACKAGE_HAS_LIBEGL
> +	depends on BR2_PACKAGE_MESA3D_GBM
> +	depends on BR2_PACKAGE_HAS_UDEV # libinput
> +	select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
> +
> +config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM_GLES
> +	bool
> +	default y
> +	depends on BR2_PACKAGE_HAS_LIBGLES

Are you sure you don't need BR2_PACKAGE_HAS_LIBEGL ? In the .mk file,
you use libegl.

> +	depends on BR2_PACKAGE_MESA3D_GBM
> +	depends on BR2_PACKAGE_HAS_UDEV # libinput
> +	select BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
> +
>  config BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_RBPI
>  	bool
>  	default y
> @@ -204,6 +221,26 @@ choice
>  	prompt "platform"
>  	default BR2_PACKAGE_KODI_PLATFORM_X11_OPENGL
>  
> +config BR2_PACKAGE_KODI_PLATFORM_GBM_GL
> +	bool "gbm/OpenGL"
> +	depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM_GL
> +	select BR2_PACKAGE_LIBGLU
> +	select BR2_PACKAGE_LIBINPUT
> +	select BR2_PACKAGE_LIBXKBCOMMON
> +
> +config BR2_PACKAGE_KODI_PLATFORM_GBM_GLES
> +	bool "gbm/GLES"
> +	depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_GBM_GLES
> +	select BR2_PACKAGE_LIBGLU

LIBGLU is only available when BR2_PACKAGE_HAS_LIBGL is enabled, so this
looks odd. And you don't have a dependency on libglu in the .mk file.

> +ifeq ($(BR2_PACKAGE_KODI_PLATFORM_GBM_GL),y)
> +KODI_CONF_OPTS += \
> +	-DCORE_PLATFORM_NAME=gbm \
> +	-DGBM_RENDER_SYSTEM=gl
> +KODI_DEPENDENCIES += libegl libglu libinput libxkbcommon mesa3d

You don't need libgl ?

> +ifeq ($(BR2_PACKAGE_KODI_PLATFORM_GBM_GLES),y)
> +KODI_CONF_OPTS += \
> +	-DCORE_PLATFORM_NAME=gbm \
> +	-DGBM_RENDER_SYSTEM=gles
> +KODI_DEPENDENCIES += libgles libinput libxkbcommon mesa3d

You don't need libegl here ?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

      reply	other threads:[~2020-02-03 10:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-02 17:33 [Buildroot] [PATCH 1/4] package/libinput: remove dependency on BR2_ENABLE_LOCALE Bernd Kuhls
2020-02-02 17:33 ` [Buildroot] [PATCH v2 2/4] package/kodi: add optional support for wayland Bernd Kuhls
2020-02-03 10:26   ` Thomas Petazzoni
2020-02-02 17:33 ` [Buildroot] [PATCH v2 3/4] package/mesa3d: add option to configure gbm support Bernd Kuhls
2020-02-03 10:45   ` Thomas Petazzoni
2020-02-02 17:33 ` [Buildroot] [PATCH v2 4/4] package/kodi: add optional support for gbm Bernd Kuhls
2020-02-03 10:47   ` Thomas Petazzoni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200203114755.607fdb4a@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.