Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thierry Bultel <tbultel@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] Using same headers as kernel
Date: Fri, 28 Feb 2014 11:42:54 +0100	[thread overview]
Message-ID: <5310682E.7050504@free.fr> (raw)

Hi,

currently, it is possible to select the kernel version as same as 
headers, through the BR2_LINUX_KERNEL_SAME_AS_HEADERS
I would like to invert that logic, I found more convenient and intuitive 
to aim a kernel version, and say that the toolchain
is built with the headers for that version.

Moreover, it is currently not feasible to choose kernel headers from a 
git location, thus the user has to manually create a snapshot.

I have a patch, that works ... almost.
It consists of adding a BR2_LINUX_HEADERS_SAME_AS_KERNEL (that makes the 
BR2_LINUX_KERNEL_SAME_AS_HEADERS unselectable of course),
copying dl/source/version definitions from linux.mk,
and add a dependency to linux-patch in linux-headers.mk, a little glue, 
and it basically does the job.

But, when the Xenomai extension is selected, then "linux" depends on it, 
and things are doing bad.
Namely xenomai (indirectly) depends on linux-headers (the chain is 
xenomai->udev->linux-utils->busybox),
leading to a chicken and egg situation.

I would not have that problem, if the dependencies were more ~layered~, 
I mean, if linux-patch was depending on xenomai-patch
instead of the whole package build.

By the way, why is the order for execution:

source, depends, extract, patch

Could that be:

source, extract, patch, depends

instead ?

How could I workaround the problem I have, without being to intrusive in 
the existing logics ?

Regards
Thierry

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140228/a7366465/attachment.html>

                 reply	other threads:[~2014-02-28 10:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5310682E.7050504@free.fr \
    --to=tbultel@free.fr \
    --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