From: "Mikko Rapeli" <mikko.rapeli@bmw.de>
To: <karthik.poduval@gmail.com>
Cc: <bruce.ashfield@gmail.com>, <yocto@yoctoproject.org>
Subject: Re: [yocto] Kernel Header UAPI Issue
Date: Tue, 23 Feb 2021 15:07:00 +0000 [thread overview]
Message-ID: <YDUaE37jsnG+nsU1@korppu> (raw)
In-Reply-To: <CAFP0Ok-863pEPRRRsOsZDG1VJ8GZw06qR+mu+_M2yJouJDuB+Q@mail.gmail.com>
Hi,
On Tue, Feb 23, 2021 at 06:56:02AM -0800, Karthik Poduval wrote:
> Hi Mikko,
>
> Do you have an example on how you do that ? Do you bbapend the
> linux-libc-headers recipe file ?
A kernel recipe will provide linux-libc-headers after a
"make headers_install" call...
So the SRC_URI of linux-libc-headers can be the same as from the
linux kernel recipe, or linux kernel recipe can provide (with some
tricks, possibly) the linux-libc-headers binary packages.
> I have an application that uses dmabuf heap that potentially extends
> across multiple BSP's as its BSP agnostic. I don't want to be patching
> individual BSP recipes and generating headers. The issue I am facing
> is due to backporting the patch from 5.6 to 5.4 so the required header
> isn't a part of the linux-libc-headers.bb recipe. Best would have been
> a virtual/kernel-keaders target that applications that require BSP
> headers would add to their recipe DEPENDS. Why is this not a solved
> issue by yocto project ? Why do individual BSP's need to deal with
> this differently when the header install mechanism (make
> headers_install) is the same irrespective of the type of BSP ?
I guess the reason is to split userspace to BSP/board specific and common
parts. It's not good if whole userspace bootstrap depends on kernel
recipe and any kernel changes requires full bootstrap and recompilation
of all userspace.
But there are BSP/board specific recipes which do need the real effective
kernel headers to interface with kernel drivers, and there are SoC
architecture specific ones which just need enough to build gcc and glibc.
Both have their pross and cons, and to me there is no clear winner.
Cheers,
-Mikko
next prev parent reply other threads:[~2021-02-23 15:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-23 0:52 Kernel Header UAPI Issue Karthik Poduval
2021-02-23 0:58 ` [yocto] " Khem Raj
2021-02-23 1:14 ` Bruce Ashfield
2021-02-23 1:38 ` Karthik Poduval
2021-02-23 13:18 ` Mikko Rapeli
2021-02-23 14:56 ` Karthik Poduval
2021-02-23 15:07 ` Mikko Rapeli [this message]
2021-02-23 18:50 ` Bruce Ashfield
2021-02-24 6:42 ` Karthik Poduval
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=YDUaE37jsnG+nsU1@korppu \
--to=mikko.rapeli@bmw.de \
--cc=bruce.ashfield@gmail.com \
--cc=karthik.poduval@gmail.com \
--cc=yocto@yoctoproject.org \
/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.