From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10895 Path: news.gmane.org!.POSTED!not-for-mail From: vlse Newsgroups: gmane.linux.lib.musl.general Subject: Query about current practice of installing linux kernel header files Date: Fri, 6 Jan 2017 18:08:39 +0530 Message-ID: <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 1483706348 15577 195.159.176.226 (6 Jan 2017 12:39:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2017 12:39:08 +0000 (UTC) User-Agent: Mutt/1.4.2.3i To: musl@lists.openwall.com Original-X-From: musl-return-10908-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jan 06 13:39:03 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 1cPTnQ-0003FY-7g for gllmg-musl@m.gmane.org; Fri, 06 Jan 2017 13:39:00 +0100 Original-Received: (qmail 29874 invoked by uid 550); 6 Jan 2017 12:39:01 -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 29825 invoked from network); 6 Jan 2017 12:38:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=veera.biz; s=20111215; t=1483706327; bh=W0rbkDjRdAgaa2sc/3EO2U+ciIp4IA9yozv0NbIBDNw=; h=Date:From:To:Subject; b=Q/5SpQ8EXj2fgxuz+HVw9yyedR72Ixn1mZ5/2QuvZxTwtnAutI99/uEFY/wYCx9im 05o0gmpxOfuEfC/oeA7gKp3vI8SukKppjhViuxtUgNVaAGlLPtDZ3QMjdonuwJN+6s 4WDD37AQMcQQ5/YtmFH4BDHCC8lnXNcD+usg8Iuc= Content-Disposition: inline X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=C5hJsV7+ c=1 sm=1 tr=0 a=PVdxPhNnfNsoB7znw+Km+g==:117 a=PVdxPhNnfNsoB7znw+Km+g==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10 a=YNgnGk5zU_jLOlsPm2YA:9 a=CjuIK1q_8ugA:10 Xref: news.gmane.org gmane.linux.lib.musl.general:10895 Archived-At: 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? Does it means we can use plain vanilla kernel source and install headers from it? 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. vlse, Veera