mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Laurent Bercot" <ska-dietlibc@skarnet.org>
To: musl@lists.openwall.com
Subject: Re: How and which Linux kernel headers are used for musl-cross-make
Date: Tue, 06 Dec 2016 09:10:02 +0000	[thread overview]
Message-ID: <em5d369865-4b17-428c-8a23-f0379d6edec0@elzian> (raw)
In-Reply-To: <20161206071958.GA2988@localhost>

>I like to know what musl-cross-make uses for linux kernel headers. 
>Making out from source code it appears it uses the plain linux kernel 
>headers from vanilla linux kernel. Or does it use sabotage modified 
>kernel headers? Please clarify the situation. Also if one has to 
>install from linux source please give the steps needed to do it 
>manually.

  musl-cross-make doesn't use kernel headers itself. You can define
LINUX_VER as the empty variable, and it will still work, and produce a
toolchain that does not include kernel headers.

  When you set LINUX_VER to a kernel version, it simply extracts the
headers for that kernel version from the vanilla kernel and installs 
them
along with the libc's headers. This helps have an operational toolchain
that is, for instance, able to compile busybox right away.

  You don't need to fetch the kernel sources yourself, musl-cross-make
will automatically do it if you give it a proper LINUX_VER. But again,
it is not mandatory. You can set LINUX_VER empty and install your own
kernel headers independently from musl-cross-make if you so wish.

--
  Laurent



  reply	other threads:[~2016-12-06  9:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-06  7:19 vlse
2016-12-06  9:10 ` Laurent Bercot [this message]
2016-12-07  5:36 vlse

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=em5d369865-4b17-428c-8a23-f0379d6edec0@elzian \
    --to=ska-dietlibc@skarnet.org \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).