All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v7 08/31] package/kodi: bump to version 17.1-Krypton
Date: Sat, 29 Apr 2017 11:56:08 +0200	[thread overview]
Message-ID: <20170429115608.0b9bf581@free-electrons.com> (raw)
In-Reply-To: <20170429083751.19625-9-bernd.kuhls@t-online.de>

Hello,

I've applied, after doing a number of minor tweaks. Also, there are a
few things that don't look completely good, and that I believe should be
addressed as follow-up patches.

On Sat, 29 Apr 2017 10:37:28 +0200, Bernd Kuhls wrote:

> +config BR2_PACKAGE_KODI_RTMPDUMP
> +	bool "kodi rtmp"

This prompt was quite useless, so I've changed it to "kodi rtmp support
removed".

> -comment "kodi needs an OpenGL or an openGL ES and EGL backend"
> -	depends on BR2_i386 || BR2_x86_64
> -	depends on !BR2_PACKAGE_KODI_GL && !BR2_PACKAGE_KODI_EGL_GLES
> +	depends on !BR2_PACKAGE_RPI_USERLAND # rpi depends on gles

I don't understand why you have this !BR2_PACKAGE_RPI_USERLAND
dependency here. Can you explain?

>  config BR2_PACKAGE_KODI_LIBVA
>  	bool "va"
> +	depends on !BR2_PACKAGE_KODI_EGL_GLES

What about using

	depends on BR2_PACKAGE_KODI_EGL_GL

here ?

> +	depends on BR2_PACKAGE_XORG7
>  	select BR2_PACKAGE_LIBVA
>  	help
>  	  Enable libva support.
>  
> +comment "libva support needs X.org with an openGL backend"
> +	depends on !BR2_PACKAGE_XORG7 || BR2_PACKAGE_KODI_EGL_GLES

And ... || !BR2_PACKAGE_KODI_EGL_GL here ?

>  config BR2_PACKAGE_KODI_LIBVDPAU
>  	bool "vdpau"
> +	depends on !BR2_PACKAGE_KODI_EGL_GLES

Same suggestion.

> +KODI_SUBDIR = project/cmake
> +
> +KODI_LIBDVDCSS_VERSION = 2f12236
> +KODI_LIBDVDNAV_VERSION = 981488f
> +KODI_LIBDVDREAD_VERSION = 17d99db
> +
> +KODI_EXTRA_DOWNLOADS = \
> +	https://github.com/xbmc/libdvdcss/archive/$(KODI_LIBDVDCSS_VERSION).tar.gz \
> +	https://github.com/xbmc/libdvdnav/archive/$(KODI_LIBDVDNAV_VERSION).tar.gz \
> +	https://github.com/xbmc/libdvdread/archive/$(KODI_LIBDVDREAD_VERSION).tar.gz

Can I say again how much I hate this stuff?

> +KODI_CONF_OPTS += \
> +	-DLIBDVDCSS_URL=$(BR2_DL_DIR)/$(KODI_LIBDVDCSS_VERSION).tar.gz \
> +	-DLIBDVDNAV_URL=$(BR2_DL_DIR)/$(KODI_LIBDVDNAV_VERSION).tar.gz \
> +	-DLIBDVDREAD_URL=$(BR2_DL_DIR)/$(KODI_LIBDVDREAD_VERSION).tar.gz

I've moved these below, with the other unconditional CONF_OPTS.

> +ifeq ($(BR2_X86_CPU_HAS_SSE),y)
> +KODI_CONF_OPTS += -D_SSE_OK=ON -D_SSE_TRUE=ON

This looks a bit fishy. Why each option has a _OK option and a _TRUE
option? Is setting both really needed?

>  ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
> +KODI_CONF_OPTS += -DCORE_SYSTEM_NAME=rbpi
>  KODI_DEPENDENCIES += rpi-userland
> -KODI_CONF_OPTS += --with-platform=raspberry-pi --enable-player=omxplayer
> -KODI_INCLUDES += \
> -	-I$(STAGING_DIR)/usr/include/interface/vcos/pthreads \
> -	-I$(STAGING_DIR)/usr/include/interface/vmcs_host/linux
> -KODI_LIBS = -lvcos -lvchostif
> -endif
> -
> -ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
> -KODI_DEPENDENCIES += udev
> -KODI_CONF_OPTS += --enable-udev
>  else
> -KODI_CONF_OPTS += --disable-udev
> +# these options only exist on non-rbpi systems

This looks very very weird. Why is LDGOLD related to RPi ?

> +KODI_CONF_OPTS += -DENABLE_LDGOLD=OFF
> +ifeq ($(BR2_PACKAGE_LIBAMCODEC),y)

Why should these options be under a "else" of the RPi stuff ?

> -ifeq ($(BR2_PACKAGE_KODI_GL),y)
> -KODI_DEPENDENCIES += libglew libglu libgl xlib_libX11 xlib_libXext \
> -	xlib_libXmu xlib_libXrandr xlib_libXt libdrm
> -KODI_CONF_OPTS += --enable-gl --enable-x11 --disable-gles
> +ifeq ($(BR2_PACKAGE_KODI_GL_EGL),y)
> +KODI_DEPENDENCIES += libegl libglu libgl xlib_libX11 xlib_libXext \
> +	xlib_libXrandr libdrm
> +KODI_CONF_OPTS += -DENABLE_OPENGL=ON -DENABLE_X11=ON -DENABLE_OPENGLES=OFF
>  else
> -KODI_CONF_OPTS += --disable-gl --disable-x11
> +KODI_CONF_OPTS += -DENABLE_OPENGL=OFF -DENABLE_X11=OFF
>  ifeq ($(BR2_PACKAGE_KODI_EGL_GLES),y)

No reason for this being in the "else" of the ifeq
($(BR2_PACKAGE_KODI_GL_EGL), so I've re-organized this way:

ifeq ( ... opengl + egl ...)
 enable Opengl stuff
else
 disable Opengl stuff
endif

ifeq ( ... opengles + egl ...)
 enable OpenglES stuff
else
 disable OpenglES stuff
endif

> +KODI_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags --libs egl`"
> +KODI_CONF_OPTS += -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) `$(PKG_CONFIG_HOST_BINARY) --cflags --libs egl`"
> +KODI_CONF_OPTS += -DENABLE_OPENGLES=ON

Reorganized as one assignment to KODI_CONF_OPTS, i.e:

KODI_CONF_OPTS += \
	... \
	... \
	...

> +	$(HOST_DIR)/usr/bin/xml ed -L \
> +		-d "/addons/addon[text()='service.xbmc.versioncheck']" \
> +		$(KODI_ADDON_MANIFEST)

So this thing is the only reason why we need xmlstarlet built for the
host system?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  reply	other threads:[~2017-04-29  9:56 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-29  8:37 [Buildroot] [PATCH v7 00/31] odi: bump to version 17.1-Krypton Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 01/31] package/kodi-visualisation-fountain: remove package Bernd Kuhls
2017-04-29  9:25   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 02/31] package/libplatform: bump version Bernd Kuhls
2017-04-29  9:31   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 03/31] package/kodi-platform: " Bernd Kuhls
2017-04-29  9:31   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 04/31] package/libcec: bump version to 4.0.2 Bernd Kuhls
2017-04-29  9:31   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 05/31] package/xmlstarlet: add host variant Bernd Kuhls
2017-04-29  9:31   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 06/31] package/kodi-jsonschemabuilder: new host package Bernd Kuhls
2017-04-29  9:32   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 07/31] package/kodi-texturepacker: " Bernd Kuhls
2017-04-29  9:37   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 08/31] package/kodi: bump to version 17.1-Krypton Bernd Kuhls
2017-04-29  9:56   ` Thomas Petazzoni [this message]
2017-04-29 12:29     ` Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 09/31] package/kodi-pvr-*: mass version bump Bernd Kuhls
2017-04-29  9:57   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 10/31] package/kodi-pvr-mythtv: bump version to 4.15.0 Bernd Kuhls
2017-04-29  9:57   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 11/31] package/kodi-pvr-nextpvr: bump version to 2.4.11 Bernd Kuhls
2017-04-29  9:57   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 12/31] package/kodi-adsp-basic: bump version Bernd Kuhls
2017-04-29  9:58   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 13/31] package/kodi-adsp-freesurround: " Bernd Kuhls
2017-04-29  9:58   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 14/31] package/kodi-audioencoder-*: mass version bump Bernd Kuhls
2017-04-29 10:00   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 15/31] package/kodi-audiodecoder-*: " Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 16/31] package/kodi-audiodecoder-timidity: bump version Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 17/31] package/kodi-screensaver-*: mass version bump Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 18/31] package/kodi-screensaver-rsxs: bump version Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 19/31] package/kodi-visualisation-*: mass version bump Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 20/31] package/kodi-visualisation-waveforhue: bump version Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 21/31] package/kodi-visualisation-shadertoy: " Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 22/31] package/kodi: add optional support for bluez5 Bernd Kuhls
2017-04-29 10:03   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 23/31] package/kodi: libxslt is an optional package Bernd Kuhls
2017-04-29 10:04   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 24/31] package/kodi: add optional support for pulseaudio Bernd Kuhls
2017-04-29 10:05   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 25/31] package/kodi: add optional support for event clients Bernd Kuhls
2017-04-29 10:06   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 26/31] package/kodi: add optional support for lcms2 Bernd Kuhls
2017-04-29 10:06   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 27/31] package/kodi-inputstream-rtmp: new package Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 28/31] package/kodi-inputstream-adaptive: " Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 29/31] package/libsquish: Remove Kodi-specific patch Bernd Kuhls
2017-04-29 10:14   ` Thomas Petazzoni
2017-04-29  8:37 ` [Buildroot] [PATCH v7 30/31] package/libsquish: bump version to 1.15 Bernd Kuhls
2017-04-29 10:14   ` Thomas Petazzoni
2017-04-29 13:44   ` Thomas Petazzoni
2017-04-29 13:46     ` Bernd Kuhls
2017-04-29  8:37 ` [Buildroot] [PATCH v7 31/31] package/kodi: Add support for more archs Bernd Kuhls
2017-04-29 11:44   ` Thomas Petazzoni
2017-04-29 13:24     ` Bernd Kuhls
     [not found] ` <fe62a0d1-d466-2d4d-22c4-d5165882dc7b@t-online.de>
2017-04-29 12:42   ` [Buildroot] [PATCH v7 08/31] package/kodi: bump to version 17.1-Krypton Thomas Petazzoni
2017-04-29 13:06     ` Bernd Kuhls
     [not found] ` <5bfda10f-6383-2bf6-afa7-4fffcd2fc5cb@t-online.de>
2017-04-29 13:13   ` Thomas Petazzoni
     [not found] ` <8b5332b4-ff7b-7afc-a545-a5cef63612b4@t-online.de>
2017-04-29 13:41   ` [Buildroot] [PATCH v7 31/31] package/kodi: Add support for more archs Thomas Petazzoni

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=20170429115608.0b9bf581@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.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.