From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] kodi: fix build when BR2_PACKAGE_LIBFSLVPUWRAP=y
Date: Thu, 9 Jun 2016 22:42:03 +0200 [thread overview]
Message-ID: <20160609224203.599c50c1@free-electrons.com> (raw)
In-Reply-To: <1463500440-25200-1-git-send-email-sebastien.szymanski@armadeus.com>
Hello,
On Tue, 17 May 2016 17:54:00 +0200, S?bastien Szymanski wrote:
> Kodi now needs the following headers to sucessfully build on some i.MX
> platforms:
>
> * ipu.h and mxcfb.h from the kernel
> * g2d.h from the imx-gpu-viv package
>
> Add the missing dependencies.
>
> Signed-off-by: S?bastien Szymanski <sebastien.szymanski@armadeus.com>
> ---
> Note: I had to install .py files to test Kodi on my target (APF6D) with
> BR2_PACKAGE_PYTHON_PY_PYC otherwise Kodi complained that it couldn't find
> site.py and crashed at startup.
This is a known bug in Kodi, which nobody has investigated so far.
>
> package/kodi/Config.in | 1 +
> package/kodi/kodi.mk | 4 +++-
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/package/kodi/Config.in b/package/kodi/Config.in
> index ff2e75c..f27f6ed 100644
> --- a/package/kodi/Config.in
> +++ b/package/kodi/Config.in
> @@ -58,6 +58,7 @@ menuconfig BR2_PACKAGE_KODI
> select BR2_PACKAGE_FONTCONFIG
> select BR2_PACKAGE_FREETYPE
> select BR2_PACKAGE_GIFLIB
> + select BR2_PACKAGE_IMX_GPU_VIV_G2D if BR2_PACKAGE_LIBFSLVPUWRAP
I would prefer this to be:
select BR2_PACKAGE_IMX_GPU_VIV_G2D if BR2_PACKAGE_IMX_GPU_VIV
> select BR2_PACKAGE_JASPER
> select BR2_PACKAGE_JPEG
> select BR2_PACKAGE_LIBASS
> diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
> index e163c24..394b174 100644
> --- a/package/kodi/kodi.mk
> +++ b/package/kodi/kodi.mk
> @@ -54,8 +54,10 @@ KODI_CONF_ENV += INCLUDES="-I$(STAGING_DIR)/usr/include/interface/vcos/pthreads
> endif
>
> ifeq ($(BR2_PACKAGE_LIBFSLVPUWRAP),y)
Change this to:
ifeq ($(BR2_PACKAGE_IMX_GPU_VIV)$(BR2_PACKAGE_LIBFSLVPUWRAP),y)
> -KODI_DEPENDENCIES += libfslvpuwrap
> +# imx-lib needs access to imx-specific kernel headers
You're talking about imx-lib here, but it doesn't appear anywhere, so
this comment is confusing, and can be removed IMO.
> +KODI_DEPENDENCIES += imx-gpu-viv libfslvpuwrap linux
Remove linux from this line. libfslvpuwrap already depends on it, so
it's not really useful to have it.
> KODI_CONF_OPTS += --enable-codec=imxvpu
> +KODI_CONF_ENV += INCLUDES="-idirafter $(LINUX_DIR)/include/uapi"
Maybe above this line:
# Kodi needs access to some specific kernel headers, which are
# Freescale specific and therefore not part of the toolchain, so we have
# to access directly the headers from the kernel sources
I think this way your patch would be a bit easier to understand.
Basically the logic is that as soon as libfslvpuwrap *and* the
imx-gpu-viv packages are enabled, i.MX6 support in Kodi will be enabled.
Could you rework this, test that it works fine for you, and resubmit?
Thanks a lot!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-06-09 20:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-17 15:54 [Buildroot] [PATCH 1/1] kodi: fix build when BR2_PACKAGE_LIBFSLVPUWRAP=y Sébastien Szymanski
2016-05-17 20:53 ` Bernd Kuhls
2016-05-18 7:30 ` Sébastien Szymanski
2016-05-18 13:04 ` Sébastien Szymanski
2016-06-09 20:42 ` Thomas Petazzoni [this message]
2016-06-09 21:19 ` Yann E. MORIN
2016-06-09 21:38 ` Thomas Petazzoni
2016-06-09 21:48 ` Yann E. MORIN
2016-06-09 21:50 ` Thomas Petazzoni
2016-06-09 22:00 ` Yann E. MORIN
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=20160609224203.599c50c1@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox