Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] Intel MediaSDK package w. Quicksync (h264, h265 HW encoding)
Date: Wed, 15 Aug 2018 13:38:08 +0200	[thread overview]
Message-ID: <20180815133808.53f62baf@windsurf> (raw)
In-Reply-To: <1534329012.local-f5796c68-5b45-v1.4.1-b1028ad4@getmailspring.com>

Hello,

On Wed, 15 Aug 2018 12:45:32 +0200, LP C wrote:

> > Really? 4.14.16, not 4.14.17 or later? That's really unlikely... Or do you mean
> > that it needs a specific fork?
> 
> Indeed I did not saw the statement on the official website. Any
> kernel newer than 4.14.16 should be fine then. I will conduct further
> testing next week to check whether I have issues ton encode with a
> really recent kernel version.

First of all, you need to check whether you have a build dependency on
4.14 kernel headers, or only a runtime dependency on having a 4.14
kernel.

If it's just a runtime dependency, a mention in the Config.in help text
is good enough.

> BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14 is not "strong enough" here. I
> would like to specify a precise 'starting' version of the kernel.
> Maybe this could be an additional feature that might be addable to
> buildroot? Maybe it is too over engineered though.

We can't do that, because Linux kernel versions are sometimes specified
as a Git commit. How can you determine that
f1d2d2f924e986ac86fdf7b36c94bcdf32beec15 is older or newer than 4.14 ?
You can't without fetching the source code, and fetching the source
code only happens at build time, i.e wait after the Buildroot
configuration is defined.

> > It really depends on the plans for upstreaming the changes, and how much
> > changes there are. If Intel's libva is really the libva version we carry at the
> > moment with some innocent changes to them, and it is intended to be upstreamed
> > in the very short term, then I'd be OK to just temporarily switch to the Intel
> > version. If, on the other hand, there is a risk that the fork will stay a fork,
> > then I think we need to add libva-intel and libva-utils-intel and virtual
> > packages. That would be really annoying though.
> 
> Tough to say, I did not studied the Intel's libva repo specifically.
> Maybe we can ask directly to one of the maintainer. That said every
> version of the Media SDK is tightly coupled with libva version, and
> AFAIK there are no forward compatibility between an older version of
> the SDK and the libva version of a new MediaSDK release. I think the
> best would be to create a virtual package. Intel has slightly
> modified the way libva is built, and I needed to add some lines (not
> that much though) to libva.mk. Virtual package would allow to not
> bloat the current libva.mk. I can do a PR on this.
> 
> Naming convention:
> libva - virtual package
> 
> libva-mainstream: current libva impl
> 
> libva-intel: current version validated to work with Intel MediaSDK.
> 
> Any thoughts on this?

I am not thrilled with the virtual package idea here. I would prefer to
first see an approach where everything is done in the existing libva
package, and depending on how good/bad this looks, take a decision from
there. Going immediately with a virtual package sounds like
over-engineering to me.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-08-15 11:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-14 20:08 [Buildroot] Intel MediaSDK package w. Quicksync (h264, h265 HW encoding) lpdev at cordier.org
2018-08-14 20:42 ` Thomas Petazzoni
2018-08-14 22:29   ` Arnout Vandecappelle
2018-08-15 10:45     ` LP C
2018-08-15 11:38       ` Thomas Petazzoni [this message]
2018-08-15 12:06         ` LP C

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=20180815133808.53f62baf@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox