From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YFp8s-0008Mu-D6 for ptxdist@pengutronix.de; Mon, 26 Jan 2015 20:16:10 +0100 Received: by mail-wg0-f51.google.com with SMTP id k14so10782572wgh.10 for ; Mon, 26 Jan 2015 11:16:04 -0800 (PST) MIME-Version: 1.0 Date: Mon, 26 Jan 2015 20:16:04 +0100 Message-ID: From: Guillermo Rodriguez Garcia Subject: [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: multipart/mixed; boundary="===============1649586963==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" --===============1649586963== Content-Type: multipart/alternative; boundary=089e013d1b2c3b501f050d92f83d --089e013d1b2c3b501f050d92f83d Content-Type: text/plain; charset=UTF-8 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? -- Guillermo Rodriguez Garcia guille.rodriguez@gmail.com --089e013d1b2c3b501f050d92f83d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello all,

I wrote a custom driver for = my BSP, and I initially made it an out-of-tree driver (ptxdist newpackage s= rc-linux-driver and so on)

This driver needs to ex= port a header file (defining some ioctl values) for use by other (custom) p= txdist packages. I am currently exporting this header file in the "ins= tall" stage of the out-of-tree driver:

cp $(M= Y_DRIVER_DIR)/someheader.h $(PTXDIST_SYSROOT_TARGET)/usr/include
<= div>
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 ca= n I export the custom header in this case? I assume that modifying the gene= ric kernel.make is not the way to go.

Any hints?
<= div>

--
Guillermo Rodrigue= z Garcia
guille.rodriguez@= gmail.com
--089e013d1b2c3b501f050d92f83d-- --===============1649586963== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1649586963==--