Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/3 v3] linux: add an option to install runtime headers
Date: Tue, 20 Sep 2016 19:18:53 +0200	[thread overview]
Message-ID: <20160920191853.1f7e0f6b@free-electrons.com> (raw)
In-Reply-To: <1de54574a4445ff63b1db831f2ca904b731d93e2.1468759218.git.yann.morin.1998@free.fr>

Hello,

On Sun, 17 Jul 2016 14:50:38 +0200, Yann E. MORIN wrote:
> When the Linux kernel is patched with new externsions (e.g. aufs), it
> exposes new userland headers that were not necessarily available in the
> headers used to build the toolchain. Those headers will expose new
> features, like new filesystems internals.
> 
> Add an option for such packages to request the kernel installs its
> headers.
> 
> We do install those headers in a non-standard location, so that:
> 
>   - they do not override those provided by the toolchain;
> 
>   - they do not get inadvertently used.
> 
> Packages that really need those headers will have to add the correct -I
> path to their CPPFLAGS.
> 
> Note: this is not documented on-purpose, as we expect the set of
> packages that need that to be very limited. In which case, we'll
> notice they need those headers, and we can instruct the submitter
> to use these option and variable.
> 
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

I have not applied this patch. Instead, I've tuned a bit the aufs-util
package so that we can directly use the headers from
$(LINUX_DIR)/include/uapi.

Thanks,

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

  reply	other threads:[~2016-09-20 17:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-17 12:50 [Buildroot] [PATCH 0/3 v3] aufs: new kernel extension (branch yem/aufs) Yann E. MORIN
2016-07-17 12:50 ` [Buildroot] [PATCH 1/3 v3] aufs: new kernel extension Yann E. MORIN
2016-09-20 17:18   ` Thomas Petazzoni
2016-07-17 12:50 ` [Buildroot] [PATCH 2/3 v3] linux: add an option to install runtime headers Yann E. MORIN
2016-09-20 17:18   ` Thomas Petazzoni [this message]
2016-07-17 12:50 ` [Buildroot] [PATCH 3/3 v3] aufs-util: new package Yann E. MORIN
2016-09-20 17:19   ` 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=20160920191853.1f7e0f6b@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