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 1UP8Qd-00067f-4C for ptxdist@pengutronix.de; Mon, 08 Apr 2013 11:31:55 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1UP8Qb-0008OC-1Q for ptxdist@pengutronix.de; Mon, 08 Apr 2013 11:31:53 +0200 Date: Mon, 8 Apr 2013 11:31:53 +0200 From: Michael Olbrich Message-ID: <20130408093153.GA32214@pengutronix.de> References: <515EB9D5.5030704@optimeas.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <515EB9D5.5030704@optimeas.de> Subject: Re: [ptxdist] Howto integrate custom kernel module into the kernel_modules*.ipk package 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 Fri, Apr 05, 2013 at 01:47:33PM +0200, Matthias Klein wrote: > I have a custom kernel module which doesn't came with a nice > Makefile for integration into ptxdist. > I had no problem to create a rule file around the build process for > that module. > > But I don't know how to get my finish compiled *.ko file > automatically into the kernel_modules package for depmod etc., as > with the rules/Makefiles from a "src-linux-driver" skeleton. > > > To which location must I copy the module, and which scripts or > commands do I have to execute in my rule file ? platform-*/packages/linux-*/lib/modules/*/extra/ Make sure you start with the src-linux-driver template. It adds an extra dependency to make this work. 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