From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TsxcK-0005Ne-NY for ptxdist@pengutronix.de; Wed, 09 Jan 2013 16:31:00 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1TsxcK-0000gy-Mb for ptxdist@pengutronix.de; Wed, 09 Jan 2013 16:31:00 +0100 Date: Wed, 9 Jan 2013 16:31:00 +0100 From: Michael Olbrich Message-ID: <20130109153100.GL13335@pengutronix.de> References: <50ED6BDE.50901@erwinrol.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <50ED6BDE.50901@erwinrol.com> Subject: Re: [ptxdist] AUFS tools Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, On Wed, Jan 09, 2013 at 02:08:46PM +0100, Erwin Rol wrote: > I have a custom kernel with AUFS and a userpsace package that needs > kernel headers. > > I now have a very bad (works for me only) hack that does the following > in the aufs3-util.make ; > > CFLAGS='$(CROSS_CFLAGS) > -I${PTXDIST_WORKSPACE}/../rootfs/local_src/kernel.Seco_T30/include/ > > Is there a better way to have a package use kernel headers from a > "local_src" kernel ? Is AUFS added as kernel patches? If yes, the it should be enough to set the version of the kernel-headers package to the kernel version. Then it uses the same patches and you can use KERNEL_HEADERS_INCLUDE_DIR Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de