From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay01.ispgateway.de ([80.67.31.24]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YG0ND-00014j-8e for ptxdist@pengutronix.de; Tue, 27 Jan 2015 08:15:43 +0100 Message-ID: <54C73EBE.10803@tqsc.de> Date: Tue, 27 Jan 2015 08:31:10 +0100 From: Markus Niebel MIME-Version: 1.0 References: In-Reply-To: Subject: Re: [ptxdist] ptxdist: Adding custom kernel headers 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 Cc: guille.rodriguez@gmail.com Hello, Am 26.01.2015 um 20:16 schrieb Guillermo Rodriguez Garcia: > Hello all, > > I wrote a custom driver for my BSP, and I initially made it an out-of-tree > driver (ptxdist newpackage src-linux-driver and so on) > > This driver needs to export a header file (defining some ioctl values) for > use by other (custom) ptxdist packages. I am currently exporting this > header file in the "install" stage of the out-of-tree driver: > > cp $(MY_DRIVER_DIR)/someheader.h $(PTXDIST_SYSROOT_TARGET)/usr/include > > So far so good. > > Now I would like to transform this out-of-tree driver into an in-tree > driver and for that I am generating a set of patches against the kernel > tree. My question is: How can I export the custom header in this case? I > assume that modifying the generic kernel.make is not the way to go. > > Any hints? > split the internal from the external part and place the header to export under /include/uapi/ modify the Kbuild script in this subdir to add your header to the headers to export Generate patch series for your kernel and use this kernel version for the kernel header package in ptxdist > > Markus -- ptxdist mailing list ptxdist@pengutronix.de