From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10898 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Query about current practice of installing linux kernel header files Date: Fri, 6 Jan 2017 14:25:46 +0100 Message-ID: <20170106132545.GC17692@port70.net> References: <20170106123839.GA2527@localhost> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1483709166 359 195.159.176.226 (6 Jan 2017 13:26:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2017 13:26:06 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) To: musl@lists.openwall.com Original-X-From: musl-return-10911-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jan 06 14:26:02 2017 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 1cPUWu-0007Bg-Kj for gllmg-musl@m.gmane.org; Fri, 06 Jan 2017 14:26:00 +0100 Original-Received: (qmail 3928 invoked by uid 550); 6 Jan 2017 13:25:58 -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 3898 invoked from network); 6 Jan 2017 13:25:58 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <20170106123839.GA2527@localhost> Xref: news.gmane.org gmane.linux.lib.musl.general:10898 Archived-At: * vlse [2017-01-06 18:08:39 +0530]: > I have a query regarding installation of Linux kernel header files for use with musl while compiling programs requiring it. I studied musl-cross-make source files. From it I found that it applies the linux kernel patch "0001-archscripts.diff" to linux source. And basically it does the following: > > 1) $(MAKE) ARCH=$(LINUX_ARCH) O=somedir INSTALL_HDR_PATH=somedir/staged headers_install > 2) find somedir/staged/include '(' -name .install -o -name ..install.cmd ')' -exec rm {} + > 3) cp -R somedir/staged/include/* $(DESTDIR)$(OUTPUT)$(SYSROOT)/include > > Is this correct? i think this is not musl specific, but the linux kernel way to install uapi (there are collisions with libc headers so you need staging and copy to the destination in the right order with respect to libc header install) > Does it means we can use plain vanilla kernel source and install headers from it? yes. > That is musl specific adaptation of Linux kernel sources & headers has been upstreamed. > No more any need of sabotage adapted linux kernel headers. > Please correct me. no, musl specific fixes are not upstreamed yet but this only affects code that includes certain linux headers as well as libc headers in the same source files.