From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10768 Path: news.gmane.org!.POSTED!not-for-mail From: "Laurent Bercot" Newsgroups: gmane.linux.lib.musl.general Subject: Re: How and which Linux kernel headers are used for musl-cross-make Date: Tue, 06 Dec 2016 09:10:02 +0000 Message-ID: References: <20161206071958.GA2988@localhost> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1481015363 17021 195.159.176.226 (6 Dec 2016 09:09:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Dec 2016 09:09:23 +0000 (UTC) User-Agent: eM_Client/7.0.27920.0 To: musl@lists.openwall.com Original-X-From: musl-return-10781-gllmg-musl=m.gmane.org@lists.openwall.com Tue Dec 06 10:09:20 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1cEBkU-0002UI-Ce for gllmg-musl@m.gmane.org; Tue, 06 Dec 2016 10:09:19 +0100 Original-Received: (qmail 26308 invoked by uid 550); 6 Dec 2016 09:09:06 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 26281 invoked from network); 6 Dec 2016 09:09:05 -0000 In-Reply-To: <20161206071958.GA2988@localhost> Xref: news.gmane.org gmane.linux.lib.musl.general:10768 Archived-At: >I like to know what musl-cross-make uses for linux kernel headers.=20 >Making out from source code it appears it uses the plain linux kernel=20 >headers from vanilla linux kernel. Or does it use sabotage modified=20 >kernel headers? Please clarify the situation. Also if one has to=20 >install from linux source please give the steps needed to do it=20 >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=20 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